aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2011-08-14 09:15:00 +0100
committerBryn M. Reeves <bmr@redhat.com>2011-08-14 09:15:00 +0100
commitd5e79133f7e47de73a682b42f6cbb81088d18d96 (patch)
treeeb022dbb866be2f59439dd0ee3934fb9c3198811
parenta2e5bf158e8f6f59536097023f4dbeaae7762c4a (diff)
downloadsos-d5e79133f7e47de73a682b42f6cbb81088d18d96.tar.gz
Don't strip whitespace from output of external programs
Resolves: bz713449
-rwxr-xr-xsos/helpers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sos/helpers.py b/sos/helpers.py
index b6b099a5..8c0591b1 100755
--- a/sos/helpers.py
+++ b/sos/helpers.py
@@ -55,7 +55,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)
def commonPrefix(l1, l2, common = []):
''' return a list of common elements at the start of all sequences,