mirror of
https://github.com/puppetlabs/vmfloaty.git
synced 2026-01-26 05:28:40 -05:00
(#25) Remove printing from delete method in pooler api
This commit is contained in:
parent
a6c5f1dceb
commit
5f6cd1df1d
4 changed files with 16 additions and 10 deletions
|
|
@ -212,7 +212,14 @@ class Vmfloaty
|
|||
|
||||
if ans
|
||||
# delete vms
|
||||
Pooler.delete(verbose, url, running_vms, token)
|
||||
puts "Scheduling all vms for for deletion"
|
||||
response = Pooler.delete(verbose, url, running_vms, token)
|
||||
response.each do |host,vals|
|
||||
if vals['ok'] == false
|
||||
STDERR.puts "There was a problem with your request for vm #{host}."
|
||||
STDERR.puts vals
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue