From: Eric Harney Date: Wed, 10 Oct 2012 14:38:22 +0000 (-0400) Subject: Error message references incorrect variable X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=1fa8442a525a49d4cf63a8f2b3fab00f2e6405ae;p=openstack-build%2Fcinder-build.git Error message references incorrect variable In remove_iscsi_target() for the TgtAdm class, the "Failed to create iscsi target for volume id:" message references a variable that doesn't exist -- use the correct variable name. Fixes bug 1065073. Change-Id: I55acb0dd2ee368fdc62a0ded6280d7ef7cd8ab7f --- diff --git a/cinder/volume/iscsi.py b/cinder/volume/iscsi.py index 68e21a07a..cb8d5df72 100644 --- a/cinder/volume/iscsi.py +++ b/cinder/volume/iscsi.py @@ -165,7 +165,7 @@ class TgtAdm(TargetAdmin): run_as_root=True) except exception.ProcessExecutionError, e: LOG.error(_("Failed to create iscsi target for volume " - "id:%(volume_id)s.") % locals()) + "id:%(vol_id)s.") % locals()) raise exception.ISCSITargetRemoveFailed(volume_id=vol_id) os.unlink(volume_path)