You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/puppet/util/puppetdb_validator.rb
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -31,12 +31,12 @@ def attempt_connection
31
31
32
32
response=conn.get(test_path,test_headers)
33
33
unlessresponse.kind_of?(Net::HTTPSuccess)
34
-
Puppet.notice"Unable to connect to puppetdb server (#{puppetdb_server}:#{puppetdb_port}): [#{response.code}] #{response.msg}"
34
+
Puppet.notice"Unable to connect to puppetdb server (http#{use_ssl ? "s" : ""}://#{puppetdb_server}:#{puppetdb_port}): [#{response.code}] #{response.msg}"
35
35
returnfalse
36
36
end
37
37
returntrue
38
38
rescueException=>e
39
-
Puppet.notice"Unable to connect to puppetdb server (#{puppetdb_server}:#{puppetdb_port}): #{e.message}"
39
+
Puppet.notice"Unable to connect to puppetdb server (http#{use_ssl ? "s" : ""}://#{puppetdb_server}:#{puppetdb_port}): #{e.message}"
0 commit comments