From 9dc45ab18dcbb55227ae320d2ac6c618fac4f120 Mon Sep 17 00:00:00 2001
From: Michael Hanselmann <hansmi@google.com>
Date: Fri, 30 Sep 2011 11:29:50 +0200
Subject: [PATCH] ssh: Quote strings in error message
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: RenΓ© Nussbaumer <rn@google.com>
---
 lib/ssh.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/ssh.py b/lib/ssh.py
index 1a3c101ae..5c11be212 100644
--- a/lib/ssh.py
+++ b/lib/ssh.py
@@ -229,8 +229,8 @@ class SshRunner:
     result = utils.RunCmd(command)
 
     if result.failed:
-      logging.error("Copy to node %s failed (%s) error %s,"
-                    " command was %s",
+      logging.error("Copy to node %s failed (%s) error '%s',"
+                    " command was '%s'",
                     node, result.fail_reason, result.output, result.cmd)
 
     return not result.failed
-- 
GitLab