mirror of
https://github.com/puppetlabs/vmfloaty.git
synced 2026-01-26 21:38:41 -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
|
|
@ -94,6 +94,10 @@ class Pooler
|
|||
end
|
||||
|
||||
def self.delete(verbose, url, hosts, token)
|
||||
if token.nil?
|
||||
raise TokenError, "Token provided was nil. Request cannot be made to delete vm"
|
||||
end
|
||||
|
||||
conn = Http.get_conn(verbose, url)
|
||||
|
||||
if token
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue