From: armando-migliaccio Date: Wed, 23 Oct 2013 19:13:39 +0000 (-0700) Subject: Fix argument mismatch failure for neutron-check-nvp-config X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=e3e4a3fa2dac7a03169d095267ec492653524325;p=openstack-build%2Fneutron-build.git Fix argument mismatch failure for neutron-check-nvp-config Use sys.argv directly. Fix bug #1243888 Change-Id: I9cb6ca841d004baf72dd68e44be673c361c2ed05 --- diff --git a/neutron/plugins/nicira/check_nvp_config.py b/neutron/plugins/nicira/check_nvp_config.py index 092dfba32..790024056 100644 --- a/neutron/plugins/nicira/check_nvp_config.py +++ b/neutron/plugins/nicira/check_nvp_config.py @@ -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)