]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/mysql/providers/user.rb
Fix issues reported by new foodcritic
[chef.git] / cookbooks / mysql / providers / user.rb
index 05fd01eb85caf8cad5ec4973826a463814a8faf1..c2f5e58d2ab35a0d7fa1b0e830223ee2d26d81d8 100644 (file)
 # limitations under the License.
 #
 
+use_inline_resources
+
 def load_current_resource
   @mysql = Chef::MySQL.new
 
   @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