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
|
|
@ -280,12 +280,15 @@ class Vmfloaty
|
|||
case action
|
||||
when "get"
|
||||
pass = password "Enter your password please:", '*'
|
||||
puts Auth.get_token(verbose, url, user, pass)
|
||||
token = Auth.get_token(verbose, url, user, pass)
|
||||
puts token
|
||||
when "delete"
|
||||
pass = password "Enter your password please:", '*'
|
||||
Auth.delete_token(verbose, url, user, pass, token)
|
||||
result = Auth.delete_token(verbose, url, user, pass, token)
|
||||
puts result
|
||||
when "status"
|
||||
puts Auth.token_status(verbose, url, token)
|
||||
status = Auth.token_status(verbose, url, token)
|
||||
puts status
|
||||
when nil
|
||||
STDERR.puts "No action provided"
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue