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 b1fe48c commit 9f5b050Copy full SHA for 9f5b050
lib/puppet/util/puppetdb_validator.rb
@@ -22,7 +22,7 @@ def attempt_connection
22
conn = Puppet.runtime[:http]
23
24
response = conn.get(test_uri, headers: test_headers)
25
- if response.is_a?(Puppet::HTTP::ResponseNetHTTP) && response.success?
+ if response.success?
26
return true
27
else
28
Puppet.notice "Unable to connect to puppetdb server (#{test_uri}): [#{response.code}] #{response.reason}"
0 commit comments