Skip to content

Commit

Permalink
misc/sh: do not strip output from left
Browse files Browse the repository at this point in the history
We want to see output of commands with nice formatting,
for example when there are yaml data

Signed-off-by: Kyr Shatskyy <[email protected]>
  • Loading branch information
Kyr Shatskyy committed Oct 14, 2021
1 parent 8e8c4a5 commit b929c50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion teuthology/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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] +
Expand Down

0 comments on commit b929c50

Please sign in to comment.