Skip to content

Commit 9f5b050

Browse files
committed
remove unecessary check
1 parent b1fe48c commit 9f5b050

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/puppet/util/puppetdb_validator.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def attempt_connection
2222
conn = Puppet.runtime[:http]
2323

2424
response = conn.get(test_uri, headers: test_headers)
25-
if response.is_a?(Puppet::HTTP::ResponseNetHTTP) && response.success?
25+
if response.success?
2626
return true
2727
else
2828
Puppet.notice "Unable to connect to puppetdb server (#{test_uri}): [#{response.code}] #{response.reason}"

0 commit comments

Comments
 (0)