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:
parent
07e0a120f3
commit
a4c750f302
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue