diff options
author | Tony NIU <niuwl586@gmail.com> | 2013-01-17 13:52:24 +0800 |
---|---|---|
committer | Tony NIU <niuwl586@gmail.com> | 2013-01-23 09:29:07 +0800 |
commit | a99ddf204a32cf9390bc00eb5e6ca4ede956f034 (patch) | |
tree | 38712eb48f22d6d847e2b870fa3624d3ff4f14e9 /nova/utils.py | |
parent | 65d75430af77367622e660f57361b972a0f8dac1 (diff) | |
download | nova-a99ddf204a32cf9390bc00eb5e6ca4ede956f034.tar.gz nova-a99ddf204a32cf9390bc00eb5e6ca4ede956f034.tar.xz nova-a99ddf204a32cf9390bc00eb5e6ca4ede956f034.zip |
Fixed nova-manage argument parsing error
In the dictionary CATEGORIES of file nova-manage, both 'flavor'
and 'instance_type' refer to InstanceTypeCommands, so the category
would be handled twice by add_command_parsers(). It would mess the
arguments if a command category is handled more than once by
function add_command_parsers().
Added a check to avoid the mess.
Change-Id: I7a314a9b389b3dea848a7111cedfc762bbb6b30e
Fixes: bug #1098733
Diffstat (limited to 'nova/utils.py')
0 files changed, 0 insertions, 0 deletions