diff options
author | Bryn M. Reeves <bmr@redhat.com> | 2012-11-29 19:02:32 +0000 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2012-11-29 19:02:32 +0000 |
commit | b11e1db9fea4bbd86d5240f77747b7050af27edd (patch) | |
tree | 4c3d7ca5092364658a7b5eb38f6e38c2c0128394 | |
parent | 3d314347cafa7e39b50f61f033a552714ecde74a (diff) | |
download | sos-b11e1db9fea4bbd86d5240f77747b7050af27edd.tar.gz |
Don't strip whitespace from output of external programs
-rw-r--r-- | sos/utilities.py | 2 |
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) |