mirror of
https://github.com/puppetlabs/vmfloaty.git
synced 2026-01-26 13:28:42 -05:00
Improve output of delete command
This commit is contained in:
parent
5908fe2d9e
commit
fa33863003
1 changed files with 5 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue