Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
first attempt to workaround 'uninitialized constant Chef::Resource::P…
…ostgresqlUser' error being thrown
  • Loading branch information
realchrisolin committed Jul 28, 2017
1 parent df0423d commit 7683f11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion providers/user.rb
Expand Up @@ -51,7 +51,7 @@ def whyrun_supported?
end

def load_current_resource
@current_resource = Chef::Resource::PostgresqlUser.new(new_resource.name)
@current_resource = Chef::Resource.resource_for_node(:postgresql_user, node).new(new_resource.name)
@current_resource.name(new_resource.name)

@current_resource.exists = user_exists?
Expand Down

0 comments on commit 7683f11

Please sign in to comment.