diff options
author | Adam Stokes <hackr@cypherbook.com> | 2013-03-25 10:49:37 -0400 |
---|---|---|
committer | Adam Stokes <hackr@cypherbook.com> | 2013-03-25 10:49:37 -0400 |
commit | fc0bcf99630f2d80d89100fcc16a63f1a442d834 (patch) | |
tree | 3870a1c9d15fc3fd243fca1e4cd08b54bf75e504 | |
parent | 3b5ecf3c4a041c4494121d7d5dd36e0fc047910a (diff) | |
download | sos-fc0bcf99630f2d80d89100fcc16a63f1a442d834.tar.gz |
Fixes #104
Signed-off-by: Adam Stokes <hackr@cypherbook.com>
-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" |