Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed syntax error.

  • Loading branch information...
commit b698aa1c579de0dc60bd2ca5520ab7f4a9f2823c 1 parent 20bc7fc
@jcarley authored
View
2  modules/postgresql/lib/puppet/provider/pg_user/debian_postgresql.rb
@@ -51,7 +51,7 @@ def destroy
def exists?
su_output = su("-", "postgres", "-c", "psql --quiet -A -t -c \"select 1 from pg_roles where rolname = '%s';\"" % @resource.value(:name))
return false if su_output.length == 0
- return true if !su_output.respond_to(:each) && su_output == "1\n"
+ return true if !su_output.respond_to?(:each) && su_output == "1\n"
su_output.each do |line|
if line == "1\n"
return true
Please sign in to comment.
Something went wrong with that request. Please try again.