diff options
-rw-r--r-- | sos/policies/__init__.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sos/policies/__init__.py b/sos/policies/__init__.py index 1cea2970..974e63c2 100644 --- a/sos/policies/__init__.py +++ b/sos/policies/__init__.py @@ -5,6 +5,7 @@ import re import platform import time import fnmatch +import pprint from sos.utilities import ImporterHelper, \ import_module, \ @@ -450,7 +451,8 @@ class LinuxPolicy(Policy): self.ticketNumber = self.commons['cmdlineopts'].ticketNumber self.reportName = self.sanitizeReportName(self.reportName) - self.ticketNumber = self.sanitizeTicketNumber(self.ticketNumber) + if self.ticketNumber: + self.ticketNumber = self.sanitizeTicketNumber(self.ticketNumber) if (self.reportName == ""): self.reportName = "default" |