diff options
-rw-r--r-- | sos.spec | 1 | ||||
-rwxr-xr-x | sos/policyredhat.py | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -52,6 +52,7 @@ rm -rf ${RPM_BUILD_ROOT} * Sun Apr 11 2010 Adam Stokes <ajs at redhat dot com> = 2.0-0 - Bump release to 2 - Fix problem where sos generates error on newline in hostname +- Remove references to sysreport* * Tue Mar 30 2010 Adam Stokes <ajs at redhat dot com> = 1.9-5 - Remove references to rh-upload diff --git a/sos/policyredhat.py b/sos/policyredhat.py index 58ecdd2b..caea9f34 100755 --- a/sos/policyredhat.py +++ b/sos/policyredhat.py @@ -149,7 +149,7 @@ class SosPolicy: return Popen("/bin/uname -r", shell=True, stdout=PIPE, bufsize=-1).stdout.read().strip("\n") def hostName(self): - return Popen("/bin/hostname", shell=True, stdout=PIPE, bufsize=-1).stdout.read().split(".")[0] + return Popen("/bin/hostname", shell=True, stdout=PIPE, bufsize=-1).stdout.read().strip("\n").split(".")[0] def rhelVersion(self): try: |