From 399fcedcc981986ce774415d49c497d982bdbadc Mon Sep 17 00:00:00 2001 From: yenai <yenai@cmss.chinamobile.com> Date: Tue, 27 Feb 2018 14:29:06 +0800 Subject: [PATCH] Delete redundant code disk_format is checked by 'image_utils.validate_disk_format', so disk_format will not be 'parallels' in any case. Change-Id: I6dd7199cf3978aa7f5825d01436245f4f53b5f9b --- cinder/api/contrib/volume_actions.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/cinder/api/contrib/volume_actions.py b/cinder/api/contrib/volume_actions.py index 91b0aa34c17..f7c4e1d6982 100644 --- a/cinder/api/contrib/volume_actions.py +++ b/cinder/api/contrib/volume_actions.py @@ -244,8 +244,6 @@ class VolumeActionsController(wsgi.Controller): image_utils.VALID_DISK_FORMATS) } raise webob.exc.HTTPBadRequest(explanation=msg) - if disk_format == "parallels": - disk_format = "ploop" image_metadata = {"container_format": params.get( "container_format", "bare"),