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
This commit is contained in:
yenai 2018-02-27 14:29:06 +08:00
parent 6e28848250
commit 399fcedcc9

@ -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"),