aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorastokes <astokes@ef72aa8b-4018-0410-8976-d6e080ef94d8>2010-04-12 15:03:22 +0000
committerastokes <astokes@ef72aa8b-4018-0410-8976-d6e080ef94d8>2010-04-12 15:03:22 +0000
commit34a9bebab8db3961039adc58eb16a586191900bc (patch)
tree8811352e4af15401a87c86c3a0ecae178be64358
parent2456f22f86c4d4367d482989e067d4164165894f (diff)
downloadsos-34a9bebab8db3961039adc58eb16a586191900bc.tar.gz
strips new line from hostname
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@917 ef72aa8b-4018-0410-8976-d6e080ef94d8
-rw-r--r--sos.spec1
-rwxr-xr-xsos/policyredhat.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/sos.spec b/sos.spec
index 25216d2d..e14326fb 100644
--- a/sos.spec
+++ b/sos.spec
@@ -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: