aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2012-12-04 22:37:41 +0000
committerBryn M. Reeves <bmr@redhat.com>2012-12-04 22:37:41 +0000
commit188caa12099bdea1d211fa113527e948ad96a124 (patch)
tree4d3a0f5885cf0900900bb56a38800281bbdc7138
parent464b24a2051c941eb7634450b8acd3ddf6f92e76 (diff)
downloadsos-188caa12099bdea1d211fa113527e948ad96a124.tar.gz
Use a default report name if name is empty after sanitizing
-rw-r--r--sos/policies/__init__.py3
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):