mirror of
https://github.com/puppetlabs/vmfloaty.git
synced 2026-01-26 13:28:42 -05:00
Properly parse response body in token delete
This commit is contained in:
parent
2ea08f95a5
commit
7fb07a9a69
1 changed files with 1 additions and 1 deletions
|
|
@ -27,7 +27,7 @@ class Auth
|
||||||
conn = Http.get_conn_with_auth(verbose, url, user, password)
|
conn = Http.get_conn_with_auth(verbose, url, user, password)
|
||||||
|
|
||||||
response = conn.delete "/token/#{token}"
|
response = conn.delete "/token/#{token}"
|
||||||
res_body = JSON.parse(response)
|
res_body = JSON.parse(response.body)
|
||||||
if res_body["ok"]
|
if res_body["ok"]
|
||||||
puts res_body
|
puts res_body
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue