Print obtained token during get command if no token exists

This commit is contained in:
Brian Cain 2015-11-16 09:04:52 -08:00
parent e8094fb91d
commit 3b92f12ee9

View file

@ -52,6 +52,8 @@ class Vmfloaty
puts "No token found. Retrieving a token..." puts "No token found. Retrieving a token..."
pass = password "Enter your password please:", '*' pass = password "Enter your password please:", '*'
token = Auth.get_token(verbose, url, user, pass) token = Auth.get_token(verbose, url, user, pass)
puts "\nToken retrieved!"
puts token
end end
response = Pooler.retrieve(verbose, os_types, token, url) response = Pooler.retrieve(verbose, os_types, token, url)