nova-manage stack trace when a usage message should be emitted
Bug #1091403 reported by
Michael Still
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Critical
|
Michael Still |
Bug Description
$ bin/nova-manage service enable
Enable scheduling for a service
2012-12-18 06:56:21 CRITICAL nova [-] global name 'parser' is not defined
2012-12-18 06:56:21 TRACE nova Traceback (most recent call last):
2012-12-18 06:56:21 TRACE nova File "bin/nova-manage", line 1147, in <module>
2012-12-18 06:56:21 TRACE nova main()
2012-12-18 06:56:21 TRACE nova File "bin/nova-manage", line 1135, in main
2012-12-18 06:56:21 TRACE nova parser.print_help()
2012-12-18 06:56:21 TRACE nova NameError: global name 'parser' is not defined
2012-12-18 06:56:21 TRACE nova
This is obviously a pretty big deal for usability.
Changed in nova: | |
status: | Triaged → In Progress |
Changed in nova: | |
milestone: | none → grizzly-2 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | grizzly-2 → 2013.1 |
To post a comment you must log in.
Michael, seems like a quick patch...want me to take care of this?
diff --git a/bin/nova-manage b/bin/nova-manage
cliutils. validate_ args(fn, *fn_args, **fn_kwargs) MissingArgs as e:
sys.exit( 1)
index c761ff6..7e3c142 100755
--- a/bin/nova-manage
+++ b/bin/nova-manage
@@ -1132,7 +1132,7 @@ def main():
except cliutils.
print fn.__doc__
- parser.print_help()
+ CONF.print_help()
print e
try: