mirror of
https://github.com/puppetlabs/vmfloaty.git
synced 2026-01-26 13:28:42 -05:00
Remove /v1 from auth class
This commit is contained in:
parent
832169a066
commit
4198321127
1 changed files with 3 additions and 3 deletions
|
|
@ -7,7 +7,7 @@ class Auth
|
||||||
conn = Http.get_conn(verbose, url)
|
conn = Http.get_conn(verbose, url)
|
||||||
|
|
||||||
resp = conn.post do |req|
|
resp = conn.post do |req|
|
||||||
req.url '/v1/token'
|
req.url '/token'
|
||||||
req.headers['Content-Type'] = 'application/json'
|
req.headers['Content-Type'] = 'application/json'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
@ -23,7 +23,7 @@ class Auth
|
||||||
|
|
||||||
conn = Http.get_conn(verbose, url)
|
conn = Http.get_conn(verbose, url)
|
||||||
|
|
||||||
response = conn.delete "/v1/token/#{token}"
|
response = conn.delete "/token/#{token}"
|
||||||
res_body = JSON.parse(response)
|
res_body = JSON.parse(response)
|
||||||
puts res_body
|
puts res_body
|
||||||
end
|
end
|
||||||
|
|
@ -36,7 +36,7 @@ class Auth
|
||||||
|
|
||||||
conn = Http.get_conn(verbose, url)
|
conn = Http.get_conn(verbose, url)
|
||||||
|
|
||||||
response = conn.get "/v1/token/#{token}"
|
response = conn.get "/token/#{token}"
|
||||||
res_body = JSON.parse(response.body)
|
res_body = JSON.parse(response.body)
|
||||||
puts res_body
|
puts res_body
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue