add exit status to nova-manage

This commit is contained in:
Vishvananda Ishaya
2010-06-24 04:12:00 +01:00
committed by andy
parent 36e2a747de
commit 23ed806d94

View File

@@ -260,7 +260,9 @@ if __name__ == '__main__':
# call the action with the remaining arguments # call the action with the remaining arguments
try: try:
fn(*argv) fn(*argv)
sys.exit(0)
except TypeError: except TypeError:
print "Wrong number of arguments supplied" print "Wrong number of arguments supplied"
print "%s %s: %s" % (category, action, fn.__doc__) print "%s %s: %s" % (category, action, fn.__doc__)
sys.exit(2)