summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorGary Kotton <gkotton@redhat.com>2013-01-07 13:25:26 +0000
committerMark McClain <mark.mcclain@dreamhost.com>2013-01-09 11:48:22 -0500
commitcfcbc7a66fd136fc4cf910c213d43c65b3900691 (patch)
tree30e75cef137278e73fffe99f7e0f661a37749250 /bin
parent666c5df3cad07eebe156f7eae59c1ea439226c6e (diff)
downloadneutron-cfcbc7a66fd136fc4cf910c213d43c65b3900691.tar.gz
Port to argparse based cfg
Implements blueprint argparse-based-cfg Sync the following changes from oslo-incubator: 479f19c Add deprecated --logdir common opt 27b2ff4 Add deprecated --logfile common opt. 9b81289 Allow nova and others to override some logging defaults 3557d84 Fix ListOpt to trim whitespace 01ab910 Fix set_default() with boolean CLI options af18eaa Improve cfg's argparse sub-parsers support f21e1d9 Fix regression with cfg CLI arguments ceb4aa7 Fix broken --help with CommonConfigOpts 5e9503b Hide the GroupAttr conf and group attributes b6d24bb updating sphinx documentation 403509e Don't reference argparse._StoreAction e17deb8 Fix minor coding style issue 0c29e1d Remove ConfigCliParser class 5b9cb41 Add support for positional arguments dbc72a6 Use stock argparse behaviour for optional args 768a147 Use stock argparse --usage behaviour ac180b9 Use stock argparse --version behaviour 0787e38 Remove add_option() method 5afead0 Completely remove cfg's disable_interspersed_args() 5f564b2 argparse support for cfg d7b6397 Add a missing comma in a docstring. aca1805 cfg: fix required if option has a dash Note: various utilities/services with command line parameters needed to be updated due to the changes mentioned above. The downside is that these are not backward compatible. Unknown arguments are no ignored. Only bound arguments will be treated. Thanks to Mark McLoughlin for migration cli code changes. Change-Id: Ia776e78cc55f4ed33ace5efa8d726b70e3fa4131
Diffstat (limited to 'bin')
-rwxr-xr-xbin/quantum-usage-audit4
1 files changed, 1 insertions, 3 deletions
diff --git a/bin/quantum-usage-audit b/bin/quantum-usage-audit
index 91c9ac4ffe..1d121f0668 100755
--- a/bin/quantum-usage-audit
+++ b/bin/quantum-usage-audit
@@ -21,8 +21,6 @@ subnets.
"""
-import sys
-
from quantum import context
from quantum import manager
from quantum.common import config
@@ -30,7 +28,7 @@ from quantum.openstack.common import cfg
from quantum.openstack.common.notifier import api as notifier_api
if __name__ == '__main__':
- cfg.CONF(args=sys.argv, project='quantum')
+ cfg.CONF(project='quantum')
config.setup_logging(cfg.CONF)
context = context.get_admin_context()