summaryrefslogtreecommitdiffstats
path: root/vio
diff options
context:
space:
mode:
Diffstat (limited to 'vio')
-rw-r--r--vio/vio/swagger/views/volume/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/vio/vio/swagger/views/volume/views.py b/vio/vio/swagger/views/volume/views.py
index 0c38d5a..fa3131c 100644
--- a/vio/vio/swagger/views/volume/views.py
+++ b/vio/vio/swagger/views/volume/views.py
@@ -129,7 +129,7 @@ class CreateListVolumeView(APIView):
if body.get('imageId'):
image_op = OperateImage.OperateImage(vim_info)
- imageName = body.get('imageId')
+ imageName = body.get('imageId') or body.get('imageName')
image = image_op.find_vim_image(imageName)
body['imageId'] = image.id