Fix default group that vhost-info uses.
This commit is contained in:
parent
e54ac16c8f
commit
6c2aa67cc9
1 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue