mirror of
https://github.com/puppetlabs/vmfloaty.git
synced 2026-01-26 05:28:40 -05:00
Add more error handling around token command
This commit is contained in:
parent
992a37cabf
commit
9c69e752e7
1 changed files with 3 additions and 1 deletions
|
|
@ -221,8 +221,10 @@ class Vmfloaty
|
||||||
Auth.delete_token(verbose, url, user, pass, token)
|
Auth.delete_token(verbose, url, user, pass, token)
|
||||||
when "status"
|
when "status"
|
||||||
Auth.token_status(verbose, url, user, pass, token)
|
Auth.token_status(verbose, url, user, pass, token)
|
||||||
|
when nil
|
||||||
|
STDERR.puts "No action provided"
|
||||||
else
|
else
|
||||||
puts "Unknown action: #{action}"
|
STDERR.puts "Unknown action: #{action}"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue