X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/fb1f1d56e8d8a6a86b79c71546e6c114fec2640c..0ef6aafef4b54ce79fe84eb44ff058f37e807d74:/cookbooks/mysql/libraries/mysql.rb?ds=sidebyside 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]}'"