From a4d1b163d83a215241b2611458e410160e58b2c5 Mon Sep 17 00:00:00 2001
From: Eric Harney <eharney@redhat.com>
Date: Thu, 15 Oct 2015 10:16:45 -0400
Subject: [PATCH] Fix typo in LIO terminate_connection error msg

"to target" -> "from target"

Change-Id: Ic80b2b2c15670d1cad2eb6ccadc722194b44ecd8
---
 cinder/volume/targets/lio.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/cinder/volume/targets/lio.py b/cinder/volume/targets/lio.py
index 05346af69bd..d58c1443772 100644
--- a/cinder/volume/targets/lio.py
+++ b/cinder/volume/targets/lio.py
@@ -181,8 +181,9 @@ class LioAdm(iscsi.ISCSITarget):
                           connector['initiator'],
                           run_as_root=True)
         except putils.ProcessExecutionError:
-            LOG.exception(_LE("Failed to delete initiator iqn %s to target."),
-                          connector['initiator'])
+            LOG.exception(
+                _LE("Failed to delete initiator iqn %s from target."),
+                connector['initiator'])
             raise exception.ISCSITargetDetachFailed(volume_id=volume['id'])
 
         # We make changes persistent