From d7e5a791503b67c53bd497b9cdebb19083630b14 Mon Sep 17 00:00:00 2001 From: Ewan Mellor Date: Wed, 9 Nov 2011 23:24:25 -0800 Subject: 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 Change-Id: I73fc2cc35530e7ee7f113f5aaec7b577663e4dc1 --- bin/nova-manage | 1 + 1 file changed, 1 insertion(+) (limited to 'bin') 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='', help='Image') @args('--kernel', dest='kernel', metavar='', help='Kernel') -- cgit