X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/fb1f1d56e8d8a6a86b79c71546e6c114fec2640c..4c86175022c9036999f9d8341e48cbd884448709:/cookbooks/mysql/providers/database.rb diff --git a/cookbooks/mysql/providers/database.rb b/cookbooks/mysql/providers/database.rb index 647925f26..6e488ce47 100644 --- a/cookbooks/mysql/providers/database.rb +++ b/cookbooks/mysql/providers/database.rb @@ -22,7 +22,7 @@ def load_current_resource @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