X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/fb1f1d56e8d8a6a86b79c71546e6c114fec2640c..f30f230da23603e3c7598205219ce01e9820c470:/cookbooks/mysql/providers/user.rb?ds=sidebyside diff --git a/cookbooks/mysql/providers/user.rb b/cookbooks/mysql/providers/user.rb index 05fd01eb8..a966679af 100644 --- a/cookbooks/mysql/providers/user.rb +++ b/cookbooks/mysql/providers/user.rb @@ -22,7 +22,7 @@ def load_current_resource @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