From 82283790b7c5ba6ae0e561ee3302d7fed7983267 Mon Sep 17 00:00:00 2001 From: Yuriy Taraday Date: Sun, 19 Jan 2014 23:08:06 +0400 Subject: [PATCH] Fix UnboundLocalError in TgtAdm.update_iscsi_target Closes-Bug: #1270624 Change-Id: I74a057a9603c5d6aefaec6db62228352b739df56 --- cinder/brick/iscsi/iscsi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cinder/brick/iscsi/iscsi.py b/cinder/brick/iscsi/iscsi.py index aafc532ea..a3fcc6206 100644 --- a/cinder/brick/iscsi/iscsi.py +++ b/cinder/brick/iscsi/iscsi.py @@ -250,8 +250,8 @@ class TgtAdm(TargetAdmin): except putils.ProcessExecutionError as e: LOG.error(_("Failed to update iscsi target %(name)s: %(e)s") % {'name': name, 'e': str(e)}) - LOG.debug("StdOut from tgt-admin --update: %s" % out) - LOG.debug("StdErr from tgt-admin --update: %s" % err) + LOG.debug("StdOut from tgt-admin --update: %s", e.stdout) + LOG.debug("StdErr from tgt-admin --update: %s", e.stderr) raise exception.ISCSITargetUpdateFailed(name=name) def remove_iscsi_target(self, tid, lun, vol_id, vol_name, **kwargs): -- 2.45.2