mirror of
https://github.com/puppetlabs/vmfloaty.git
synced 2026-01-26 13:28:42 -05:00
(maint) Don't raise error in command class
This commit is contained in:
parent
8b8ac88578
commit
478761023d
1 changed files with 4 additions and 2 deletions
|
|
@ -52,7 +52,8 @@ class Vmfloaty
|
|||
unless token
|
||||
puts "No token found. Retrieving a token..."
|
||||
if !user
|
||||
raise "You did not provide a user to authenticate to vmpooler with"
|
||||
STDERR.puts "You did not provide a user to authenticate to vmpooler with"
|
||||
exit 1
|
||||
end
|
||||
pass = password "Enter your password please:", '*'
|
||||
begin
|
||||
|
|
@ -416,7 +417,8 @@ class Vmfloaty
|
|||
if !no_token && !token
|
||||
puts "No token found. Retrieving a token..."
|
||||
if !user
|
||||
raise "You did not provide a user to authenticate to vmpooler with"
|
||||
STDERR.puts "You did not provide a user to authenticate to vmpooler with"
|
||||
exit 1
|
||||
end
|
||||
pass = password "Enter your password please:", '*'
|
||||
begin
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue