aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rwxr-xr-xsrc/lib/sos/policyredhat.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/sos/policyredhat.py b/src/lib/sos/policyredhat.py
index 26004140..b5a02203 100755
--- a/src/lib/sos/policyredhat.py
+++ b/src/lib/sos/policyredhat.py
@@ -229,6 +229,11 @@ class SosPolicy:
def packageResults(self):
+ if len(self.ticketNumber):
+ self.reportName = self.reportName + "." + self.ticketNumber
+ else:
+ self.reportName = self.reportName
+
self.renameResults("sosreport-%s-%s.tar.bz2" % (self.reportName, time.strftime("%Y%m%d%H%M%S")))
tarcmd = "/bin/tar -jcf %s %s" % (self.report_file, os.path.basename(self.cInfo['dstroot']))
@@ -241,7 +246,6 @@ class SosPolicy:
status, shout = commands.getstatusoutput(tarcmd)
os.umask(oldmask)
os.chdir(curwd)
-
return
def cleanDstroot(self):