Fix argument mismatch failure for neutron-check-nvp-config
Use sys.argv directly. Fix bug #1243888 Change-Id: I9cb6ca841d004baf72dd68e44be673c361c2ed05
This commit is contained in:
parent
7ce5368ee0
commit
e3e4a3fa2d
@ -51,11 +51,11 @@ def get_transport_zones(cluster):
|
||||
return [transport_zone['uuid'] for transport_zone in transport_zones]
|
||||
|
||||
|
||||
def main(argv):
|
||||
if len(argv) != 2:
|
||||
help(argv[0])
|
||||
def main():
|
||||
if len(sys.argv) != 2:
|
||||
help(sys.argv[0])
|
||||
args = ['--config-file']
|
||||
args.append(argv[1])
|
||||
args.append(sys.argv[1])
|
||||
config.parse(args)
|
||||
print("----------------------- Database Options -----------------------")
|
||||
print("\tconnection: %s" % cfg.CONF.database.connection)
|
||||
|
Loading…
x
Reference in New Issue
Block a user