diff options
author | pcarrier <pcarrier@ef72aa8b-4018-0410-8976-d6e080ef94d8> | 2010-11-22 20:42:07 +0000 |
---|---|---|
committer | pcarrier <pcarrier@ef72aa8b-4018-0410-8976-d6e080ef94d8> | 2010-11-22 20:42:07 +0000 |
commit | 9e6654e8e0d0e62efd383ff2992657dfaefdac58 (patch) | |
tree | a71f1b38588192850160d5f9ea09ebf86571b138 | |
parent | 44819e7ec65c73c626608b3f438a5bf4dae18571 (diff) | |
download | sos-9e6654e8e0d0e62efd383ff2992657dfaefdac58.tar.gz |
always include the hostname
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@1023 ef72aa8b-4018-0410-8976-d6e080ef94d8
-rwxr-xr-x | sos/policyredhat.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sos/policyredhat.py b/sos/policyredhat.py index 863445ae..5400bbda 100755 --- a/sos/policyredhat.py +++ b/sos/policyredhat.py @@ -220,9 +220,6 @@ class SosPolicy: print sys.exit(0) - if len(self.reportName) == 0: - self.reportName = localname - if self.cInfo['cmdlineopts'].customerName: self.reportName = self.cInfo['cmdlineopts'].customerName self.reportName = re.sub(r"[^a-zA-Z.0-9]", "", self.reportName) @@ -231,6 +228,9 @@ class SosPolicy: self.ticketNumber = self.cInfo['cmdlineopts'].ticketNumber self.ticketNumber = re.sub(r"[^0-9]", "", self.ticketNumber) + if self.reportName != localname: + self.reportName += "." + localname + return def renameResults(self, newName): |