]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/postgresql/providers/database.rb
Rubocop cleanups
[chef.git] / cookbooks / postgresql / providers / database.rb
index a63197afe63325dd2bd8b027fa3d605134beaa65..c2b000d13d86b54f6e5412c90645b3d49eef69d8 100644 (file)
@@ -33,7 +33,7 @@ def load_current_resource
 end
 
 action :create do
-  unless @pg.databases.include?(new_resource.database)
+  if !@pg.databases.include?(new_resource.database)
     @pg.execute(:command => "CREATE DATABASE \"#{new_resource.database}\" OWNER \"#{new_resource.owner}\" TEMPLATE template0 ENCODING '#{new_resource.encoding}' LC_COLLATE '#{new_resource.collation}' LC_CTYPE '#{new_resource.ctype}'")
     new_resource.updated_by_last_action(true)
   else