]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/mysql/providers/database.rb
Update carto stylesheet to v2.32.0
[chef.git] / cookbooks / mysql / providers / database.rb
index 647925f263be839ff3b1c47fa359d5e9816cd63e..6e488ce476c6ee774b311beb8a520c1175b4b7a6 100644 (file)
@@ -22,7 +22,7 @@ def load_current_resource
 
   @current_resource = Chef::Resource::MysqlDatabase.new(new_resource.name)
   @current_resource.database(new_resource.database)
 
   @current_resource = Chef::Resource::MysqlDatabase.new(new_resource.name)
   @current_resource.database(new_resource.database)
-  if mysql_database = @mysql.databases[@current_resource.database]
+  if (mysql_database = @mysql.databases[@current_resource.database])
     @current_resource.permissions(mysql_database[:permissions])
   end
   @current_resource
     @current_resource.permissions(mysql_database[:permissions])
   end
   @current_resource