mirror of
https://github.com/puppetlabs/vmfloaty.git
synced 2026-01-25 21:28:40 -05:00
Raise TokenError if none provided to Pooler.delete
This commit is contained in:
parent
97e188cf6d
commit
a6ff0515d3
3 changed files with 16 additions and 1 deletions
|
|
@ -336,7 +336,14 @@ class Vmfloaty
|
|||
exit 1
|
||||
else
|
||||
hosts = hostnames.split(',')
|
||||
Pooler.delete(verbose, url, hosts, token)
|
||||
begin
|
||||
Pooler.delete(verbose, url, hosts, token)
|
||||
rescue TokenError => e
|
||||
STDERR.puts e
|
||||
exit 1
|
||||
end
|
||||
|
||||
puts "Schedulered vmpooler to delete vms #{hosts}."
|
||||
exit 0
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue