]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Fix Typo in LOG.error
authorChuck Short <chuck.short@canonical.com>
Thu, 6 Sep 2012 14:50:37 +0000 (09:50 -0500)
committerChuck Short <chuck.short@canonical.com>
Thu, 6 Sep 2012 14:53:30 +0000 (09:53 -0500)
Fix typo in LOG.error, it should be
vol_id rather than volume_id.
Fixes bug #1046875

Change-Id: Id162c6f185a110b63e8f9f509f5cde75f3626cbf
Signed-off-by: Chuck Short <chuck.short@canonical.com>
cinder/volume/iscsi.py

index 691314393a689effaf3b8407b4d2f9b1be451b2a..57734f60227d66e787c5f13ea3d428a339a4006f 100644 (file)
@@ -133,7 +133,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())
 
             #Dont forget to remove the persistent file we created
             os.unlink(volume_path)