Fix non-json response of container commit

The RESP BODY should be of json format, this patch fixes it.

Change-Id: I250b743d8adc6cd6b41039bb3431eff35c4c030c
Closes-Bug: #1720181
This commit is contained in:
miaohb 2017-09-28 17:45:13 -07:00
parent 2b723c3145
commit 87bdaff04e

View File

@ -617,7 +617,7 @@ class Manager(periodic_task.PeriodicTasks):
repository, tag)
utils.spawn_n(do_container_commit)
return snapshot_image.id
return {"uuid": snapshot_image.id}
def _do_container_image_upload(self, context, snapshot_image, data, tag):
try: