summaryrefslogtreecommitdiffstats
path: root/module/obmc/wsgi/apps
diff options
context:
space:
mode:
Diffstat (limited to 'module/obmc/wsgi/apps')
-rw-r--r--module/obmc/wsgi/apps/rest_dbus.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/module/obmc/wsgi/apps/rest_dbus.py b/module/obmc/wsgi/apps/rest_dbus.py
index 93cd4de..6374add 100644
--- a/module/obmc/wsgi/apps/rest_dbus.py
+++ b/module/obmc/wsgi/apps/rest_dbus.py
@@ -788,7 +788,10 @@ class ImageUploadUtils:
break
cls.signal.remove()
cls.signal = None
- return version_id
+ if version_id:
+ return version_id
+ else:
+ abort(400, "Version already exists or failed to be extracted")
class ImagePostHandler(RouteHandler):
OpenPOWER on IntegriCloud