aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2012-11-29 19:02:32 +0000
committerBryn M. Reeves <bmr@redhat.com>2012-11-29 19:02:32 +0000
commitb11e1db9fea4bbd86d5240f77747b7050af27edd (patch)
tree4c3d7ca5092364658a7b5eb38f6e38c2c0128394
parent3d314347cafa7e39b50f61f033a552714ecde74a (diff)
downloadsos-b11e1db9fea4bbd86d5240f77747b7050af27edd.tar.gz
Don't strip whitespace from output of external programs
-rw-r--r--sos/utilities.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sos/utilities.py b/sos/utilities.py
index 9b062bb1..8fd16559 100644
--- a/sos/utilities.py
+++ b/sos/utilities.py
@@ -156,7 +156,7 @@ def sosGetCommandOutput(command, timeout=300):
p = Popen(command, shell=True, stdout=PIPE, stderr=PIPE, bufsize=-1)
stdout, stderr = p.communicate()
- return (p.returncode, stdout.strip(), 0)
+ return (p.returncode, stdout, 0)
else:
return (127, "", 0)