mirror of
https://github.com/puppetlabs/vmfloaty.git
synced 2026-01-26 05:28:40 -05:00
Check if hosts are nil for delete method
This commit is contained in:
parent
16dd780cb9
commit
fa93804ffc
1 changed files with 5 additions and 0 deletions
|
|
@ -47,6 +47,11 @@ class Pooler
|
|||
end
|
||||
|
||||
def self.delete(verbose, url, hostnames)
|
||||
if hostnames.nil?
|
||||
STDERR.puts "You did not provide any hosts to delete"
|
||||
exit 1
|
||||
end
|
||||
|
||||
hosts = hostnames.split(',')
|
||||
conn = Http.get_conn(verbose, url)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue