From a4c750f3027977551c1fdab430040689a620edb0 Mon Sep 17 00:00:00 2001 From: ls1175 Date: Tue, 31 Dec 2013 15:54:17 +0800 Subject: [PATCH] Reduce the redundant variable declarations The method create() in /cinder/api/v2/volumes.py has two redundant variable declarations: image_href = None image_uuid = None These should be reduced Change-Id: If3798d4bd96998707d7a5f87ece95ed8c93cc042 Closes-bug: #1265148 --- cinder/api/v2/volumes.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/cinder/api/v2/volumes.py b/cinder/api/v2/volumes.py index 18d201d78..1c65d33fd 100644 --- a/cinder/api/v2/volumes.py +++ b/cinder/api/v2/volumes.py @@ -376,8 +376,6 @@ class VolumeController(wsgi.Controller): LOG.audit(_("Create volume of %s GB"), size, context=context) - image_href = None - image_uuid = None if self.ext_mgr.is_loaded('os-image-create'): image_href = volume.get('imageRef') if image_href: -- 2.45.2