We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0db1be0 + 8204bcd commit 57448a9Copy full SHA for 57448a9
lib/puppet/type/postgresql_psql.rb
@@ -34,12 +34,7 @@ def sync
34
35
# Return true if a matching row is found
36
def matches(value)
37
- if Puppet::PUPPETVERSION.to_f < 4
38
- output, status = provider.run_unless_sql_command(value)
39
- else
40
- output = provider.run_unless_sql_command(value)
41
- status = output.exitcode
42
- end
+ output, status = provider.run_unless_sql_command(value)
43
self.fail("Error evaluating 'unless' clause, returned #{status}: '#{output}'") unless status == 0
44
45
result_count = output.strip.to_i
0 commit comments