]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/mysql/providers/user.rb
Update carto stylesheet to v2.32.0
[chef.git] / cookbooks / mysql / providers / user.rb
index 05fd01eb85caf8cad5ec4973826a463814a8faf1..a966679af3be913ee8dcc1ad298db95635c2a850 100644 (file)
@@ -22,7 +22,7 @@ def load_current_resource
 
   @current_resource = Chef::Resource::MysqlUser.new(new_resource.name)
   @current_resource.user(new_resource.user)
 
   @current_resource = Chef::Resource::MysqlUser.new(new_resource.name)
   @current_resource.user(new_resource.user)
-  if mysql_user = @mysql.users[@current_resource.user]
+  if (mysql_user = @mysql.users[@current_resource.user])
     Chef::MySQL::USER_PRIVILEGES.each do |privilege|
       @current_resource.send(privilege, mysql_user[privilege])
     end
     Chef::MySQL::USER_PRIVILEGES.each do |privilege|
       @current_resource.send(privilege, mysql_user[privilege])
     end