From fa33863003636913905aa48af6055fb55991d7ca Mon Sep 17 00:00:00 2001 From: Brian Cain Date: Sat, 19 Sep 2015 15:21:35 -0700 Subject: [PATCH] Improve output of delete command --- lib/vmfloaty/pooler.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/vmfloaty/pooler.rb b/lib/vmfloaty/pooler.rb index 19d6316..af59fca 100644 --- a/lib/vmfloaty/pooler.rb +++ b/lib/vmfloaty/pooler.rb @@ -64,7 +64,11 @@ class Pooler puts "Scheduling host #{host} for deletion" response = conn.delete "/vm/#{host}" 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