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
This commit is contained in:
ls1175 2013-12-31 15:54:17 +08:00
parent 07e0a120f3
commit a4c750f302
1 changed files with 0 additions and 2 deletions

View File

@ -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: