From faffb74ff8043d375a0894e155db4d2002c81e96 Mon Sep 17 00:00:00 2001 From: "zhu.boxiang" Date: Fri, 10 May 2019 10:36:39 +0800 Subject: [PATCH] Remove confusing annotation The function which was to check for valid disk-format had been removed here. Now remove the confusing annotation. Change-Id: I6d9ade8c194b10b3618cffbbd5c904d27f785356 --- cinder/api/contrib/volume_actions.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cinder/api/contrib/volume_actions.py b/cinder/api/contrib/volume_actions.py index 02a590e84d8..3a2de3af130 100644 --- a/cinder/api/contrib/volume_actions.py +++ b/cinder/api/contrib/volume_actions.py @@ -210,9 +210,8 @@ class VolumeActionsController(wsgi.Controller): volume = self.volume_api.get(context, id) context.authorize(policy.UPLOAD_IMAGE_POLICY) - # check for valid disk-format - disk_format = params.get("disk_format", "raw") + disk_format = params.get("disk_format", "raw") image_metadata = {"container_format": params.get( "container_format", "bare"), "disk_format": disk_format,