diff options
author | Bryn M. Reeves <bmr@redhat.com> | 2012-12-04 22:37:41 +0000 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2012-12-04 22:37:41 +0000 |
commit | 188caa12099bdea1d211fa113527e948ad96a124 (patch) | |
tree | 4d3a0f5885cf0900900bb56a38800281bbdc7138 | |
parent | 464b24a2051c941eb7634450b8acd3ddf6f92e76 (diff) | |
download | sos-188caa12099bdea1d211fa113527e948ad96a124.tar.gz |
Use a default report name if name is empty after sanitizing
-rw-r--r-- | sos/policies/__init__.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sos/policies/__init__.py b/sos/policies/__init__.py index 9fdcc9fc..220bec8c 100644 --- a/sos/policies/__init__.py +++ b/sos/policies/__init__.py @@ -428,6 +428,9 @@ class LinuxPolicy(Policy): self.reportName = self.sanitizeReportName(self.reportName) self.ticketNumber = self.sanitizeTicketNumber(self.ticketNumber) + if (self.reportName == ""): + self.reportName = "default" + return def packageResults(self, archive_filename): |