From 34a24cd813c61bcb8e5e5a8511b9d6048f520900 Mon Sep 17 00:00:00 2001 From: astokes Date: Thu, 23 Jul 2009 15:58:49 +0000 Subject: updates git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@617 ef72aa8b-4018-0410-8976-d6e080ef94d8 --- src/lib/sos/policyredhat.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/lib') 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): -- cgit