Add failure message if modify command did not work

This commit is contained in:
Brian Cain 2015-10-14 17:13:36 -07:00
parent 2153507098
commit 0effe55c31
3 changed files with 6 additions and 2 deletions

View file

@ -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