mirror of
https://github.com/puppetlabs/vmfloaty.git
synced 2026-01-26 05:28:40 -05:00
(#14) Remove printing in auth library
This commit is contained in:
parent
544d9d35b8
commit
3394a14ea0
3 changed files with 9 additions and 6 deletions
|
|
@ -29,7 +29,7 @@ class Auth
|
|||
response = conn.delete "/token/#{token}"
|
||||
res_body = JSON.parse(response.body)
|
||||
if res_body["ok"]
|
||||
puts res_body
|
||||
return res_body
|
||||
else
|
||||
STDERR.puts "There was a problem with your request:"
|
||||
puts res_body
|
||||
|
|
@ -49,7 +49,7 @@ class Auth
|
|||
res_body = JSON.parse(response.body)
|
||||
|
||||
if res_body["ok"]
|
||||
res_body
|
||||
return res_body
|
||||
else
|
||||
STDERR.puts "There was a problem with your request:"
|
||||
puts res_body
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue