Fix argument mismatch failure for neutron-check-nvp-config

Use sys.argv directly.

Fix bug #1243888

Change-Id: I9cb6ca841d004baf72dd68e44be673c361c2ed05
(cherry picked from commit e3e4a3fa2d)
This commit is contained in:
armando-migliaccio 2013-10-23 12:13:39 -07:00 committed by Gerrit Code Review
parent c78394474b
commit c48641ac27
1 changed files with 4 additions and 4 deletions

View File

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