Grab proper hostname flag for query command

This commit is contained in:
Brian Cain 2015-09-15 13:22:36 -07:00
parent 7abe3564ed
commit a9bce6ec97

View file

@ -83,7 +83,7 @@ class Vmfloaty
c.action do |args, options| c.action do |args, options|
verbose = options.verbose || config['verbose'] verbose = options.verbose || config['verbose']
url = options.url ||= config['url'] url = options.url ||= config['url']
hostname = options.hostname hostname = options.host
query = Pooler.query(verbose, url, hostname) query = Pooler.query(verbose, url, hostname)
puts query puts query