From b929c50d588bcee3ca15f4a0617ac6dc0d43d037 Mon Sep 17 00:00:00 2001 From: Kyr Shatskyy Date: Thu, 14 Oct 2021 16:40:15 +0200 Subject: [PATCH] misc/sh: do not strip output from left We want to see output of commands with nice formatting, for example when there are yaml data Signed-off-by: Kyr Shatskyy --- teuthology/misc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teuthology/misc.py b/teuthology/misc.py index d88d19b6c7..2432d46d5f 100644 --- a/teuthology/misc.py +++ b/teuthology/misc.py @@ -1308,7 +1308,7 @@ def sh(command, log_limit=1024, cwd=None, env=None): for line in proc.stdout: line = line.decode() lines.append(line) - line = line.strip() + line = line.rstrip() if len(line) > log_limit: truncated = True log.debug(line[:log_limit] +