X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/db1258aa91142e37e5dcded368a25ec2c937f473..9bca5f05185dde08efcf2d5f1a2bf66c8cdc9f00:/cookbooks/mysql/libraries/mysql.rb diff --git a/cookbooks/mysql/libraries/mysql.rb b/cookbooks/mysql/libraries/mysql.rb index 769df807e..91eb6f9d1 100644 --- a/cookbooks/mysql/libraries/mysql.rb +++ b/cookbooks/mysql/libraries/mysql.rb @@ -104,7 +104,9 @@ class Chef end query("SELECT * FROM db").each do |record| - next unless database = @databases[record[:db]] + database = @databases[record[:db]] + + next unless database user = "'#{record[:user]}'@'#{record[:host]}'"