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.
1 parent 855718e commit 90290f6Copy full SHA for 90290f6
lib/puppet/type/postgresql_psql.rb
@@ -51,12 +51,9 @@ def matches(value)
51
52
# Return true if a matching row is found
53
def matches(value)
54
- if Puppet::PUPPETVERSION.to_f < 4
55
- output, status = provider.run_unless_sql_command(value)
56
- else
57
- output = provider.run_unless_sql_command(value)
58
- status = output.exitcode
59
- end
+ output, status = provider.run_unless_sql_command(value)
+ status = output.exitcode if status.nil?
+
60
self.fail("Error evaluating 'onlyif' clause, returned #{status}: '#{output}'") unless status == 0
61
62
result_count = output.strip.to_i
0 commit comments