Improve output of delete command

This commit is contained in:
Brian Cain 2015-09-19 15:21:35 -07:00
parent 5908fe2d9e
commit fa33863003

View file

@ -64,7 +64,11 @@ class Pooler
puts "Scheduling host #{host} for deletion" puts "Scheduling host #{host} for deletion"
response = conn.delete "/vm/#{host}" response = conn.delete "/vm/#{host}"
res_body = JSON.parse(response.body) res_body = JSON.parse(response.body)
puts res_body if res_body['ok']
puts "Deletion for vm #{host} successfully scheduled"
else
STDERR.puts "There was a problem with your request for vm #{host}"
end
end end
end end