Merge pull request #186 from puppetlabs/fix_status_path

(RE-15687) Use relative path for pooler status and summary
This commit is contained in:
Jake Spain 2023-08-07 13:57:47 -04:00 committed by GitHub
commit bfae973e46
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -146,14 +146,14 @@ class Pooler
def self.status(verbose, url) def self.status(verbose, url)
conn = Http.get_conn(verbose, url) conn = Http.get_conn(verbose, url)
response = conn.get '/status' response = conn.get 'status'
JSON.parse(response.body) JSON.parse(response.body)
end end
def self.summary(verbose, url) def self.summary(verbose, url)
conn = Http.get_conn(verbose, url) conn = Http.get_conn(verbose, url)
response = conn.get '/summary' response = conn.get 'summary'
JSON.parse(response.body) JSON.parse(response.body)
end end