From: ls1175 Date: Tue, 31 Dec 2013 07:54:17 +0000 (+0800) Subject: Reduce the redundant variable declarations X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=a4c750f3027977551c1fdab430040689a620edb0;p=openstack-build%2Fcinder-build.git 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 --- 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: