Method: Bolt::PuppetDB::Client#uri
- Defined in:
- lib/bolt/puppetdb/client.rb
#uri ⇒ Object
108 109 110 111 112 113 114 115 116 117 118 |
# File 'lib/bolt/puppetdb/client.rb', line 108 def uri @current_url ||= (@config.server_urls - @bad_urls).first unless @current_url msg = "Failed to connect to all PuppetDB server_urls: #{@config.server_urls.to_a.join(', ')}." raise Bolt::PuppetDBError, msg end uri = URI.parse(@current_url) uri.port ||= 8081 uri end |