mirror of
https://github.com/puppetlabs/vmfloaty.git
synced 2026-01-26 05:28:40 -05:00
Add failure message if modify command did not work
This commit is contained in:
parent
2153507098
commit
0effe55c31
3 changed files with 6 additions and 2 deletions
|
|
@ -121,6 +121,10 @@ class Vmfloaty
|
|||
modify_req = Pooler.modify(verbose, url, hostname, token, lifetime, tags)
|
||||
if modify_req["ok"]
|
||||
puts "Successfully modified vm #{hostname}."
|
||||
else
|
||||
STDERR.puts "Something went wrong with your request"
|
||||
puts modify_req
|
||||
exit 1
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue