]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Error message references incorrect variable
authorEric Harney <eharney@redhat.com>
Wed, 10 Oct 2012 14:38:22 +0000 (10:38 -0400)
committerEric Harney <eharney@redhat.com>
Wed, 10 Oct 2012 14:49:24 +0000 (10:49 -0400)
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

index 68e21a07ade8487de1c221d69bc82860accc67cf..cb8d5df723456a7d3a1bd2b1ca659ee0730244a6 100644 (file)
@@ -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)