Check if hosts are nil for delete method

This commit is contained in:
Brian Cain 2015-09-15 13:53:20 -07:00
parent 16dd780cb9
commit fa93804ffc

View file

@ -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)