From 1fa8442a525a49d4cf63a8f2b3fab00f2e6405ae Mon Sep 17 00:00:00 2001 From: Eric Harney Date: Wed, 10 Oct 2012 10:38:22 -0400 Subject: [PATCH] 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 --- cinder/volume/iscsi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.45.2