nova-manage: exit with status 1 if an image registration fails

This indicates the failure to the user through the exit status.

Original author: Renuka Apte <renuka.apte@citrix.com>

Change-Id: I73fc2cc35530e7ee7f113f5aaec7b577663e4dc1
This commit is contained in:
Ewan Mellor 2011-11-09 23:24:25 -08:00
parent 1a5418b7cb
commit d7e5a79150

View File

@ -1824,6 +1824,7 @@ class ImageCommands(object):
return new
except Exception as exc:
print _("Failed to register %(path)s: %(exc)s") % locals()
sys.exit(1)
@args('--image', dest='image', metavar='<image>', help='Image')
@args('--kernel', dest='kernel', metavar='<kernel>', help='Kernel')