]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/mysql/libraries/mysql.rb
Remove xapi role.
[chef.git] / cookbooks / mysql / libraries / mysql.rb
index 769df807e0eda0c37c6c71c60ad90cbd595df34b..91eb6f9d1c5527f2c4a36e17505e2ff8ab15a72e 100644 (file)
@@ -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]}'"