Fix default group that vhost-info uses.

This commit is contained in:
Kevin Fenzi 2016-03-17 22:38:27 +00:00
parent e54ac16c8f
commit 6c2aa67cc9

View file

@ -49,17 +49,17 @@ class OutputCallback(CallbackBase):
self.cpu_used_in_vm[vhostname]=cpu_used
parser = OptionParser(version = "1.0")
parser.add_option('--host', default=[], action='append', help="hosts to act on, defaults to virthosts")
parser.add_option('--host', default=[], action='append', help="hosts to act on, defaults to virtservers")
parser.add_option('--hosts-from-file', default=None, dest="host_file", help="read list of hosts from this file")
(opts, args) = parser.parse_args(sys.argv[1:])
if not opts.host:
hosts = ["virthosts"]
hosts = ["virtservers"]
else:
hosts = ';'.join(opts.host)
if not opts.host:
hosts = ["virthosts"]
hosts = ["virtservers"]
else:
hosts = ';'.join(opts.host)