Skip to content
Browse files

Fixed syntax error.

  • Loading branch information...
1 parent 20bc7fc commit b698aa1c579de0dc60bd2ca5520ab7f4a9f2823c @jcarley committed Aug 2, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 modules/postgresql/lib/puppet/provider/pg_user/debian_postgresql.rb
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

0 comments on commit b698aa1

Please sign in to comment.
Something went wrong with that request. Please try again.