diff options
| author | Ewan Mellor <ewan.mellor@citrix.com> | 2011-11-09 23:24:25 -0800 |
|---|---|---|
| committer | Ewan Mellor <ewan.mellor@citrix.com> | 2011-11-10 12:13:04 -0800 |
| commit | d7e5a791503b67c53bd497b9cdebb19083630b14 (patch) | |
| tree | 6730ebeae727c41d01eb62d75178c202d4528d9d /bin | |
| parent | 1a5418b7cbc6f19000ee2847067c681685dd416e (diff) | |
| download | nova-d7e5a791503b67c53bd497b9cdebb19083630b14.tar.gz nova-d7e5a791503b67c53bd497b9cdebb19083630b14.tar.xz nova-d7e5a791503b67c53bd497b9cdebb19083630b14.zip | |
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
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/nova-manage | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/nova-manage b/bin/nova-manage index d56b292f7..382260ca8 100755 --- a/bin/nova-manage +++ b/bin/nova-manage @@ -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') |
