summaryrefslogtreecommitdiffstats
path: root/vio/vio/swagger/views/image/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'vio/vio/swagger/views/image/views.py')
-rw-r--r--vio/vio/swagger/views/image/views.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/vio/vio/swagger/views/image/views.py b/vio/vio/swagger/views/image/views.py
index edc3873..6865549 100644
--- a/vio/vio/swagger/views/image/views.py
+++ b/vio/vio/swagger/views/image/views.py
@@ -21,6 +21,7 @@ from vio.pub.vim.vimapi.glance import OperateImage
from vio.swagger import image_utils
from vio.pub.exceptions import VimDriverVioException
+
class GetDeleteImageView(APIView):
def get(self, request, vimid, tenantid, imageid):
@@ -64,6 +65,7 @@ class GetDeleteImageView(APIView):
return Response(data={'error': str(e)},
status=status.HTTP_500_INTERNAL_SERVER_ERROR)
+
class CreateListImagesView(APIView):
def get(self, request, vimid, tenantid):
@@ -119,7 +121,8 @@ class CreateListImagesView(APIView):
param = image_utils.req_body_formatter(req_body)
image = image_instance.create_vim_image(vimid, tenantid,
- imagePath=req_body.get('imagePath'),
+ imagePath=req_body.get(
+ 'imagePath'),
**param)
rsp = image_utils.image_formatter(image)