aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Stokes <hackr@cypherbook.com>2013-03-25 10:49:37 -0400
committerAdam Stokes <hackr@cypherbook.com>2013-03-25 10:49:37 -0400
commitfc0bcf99630f2d80d89100fcc16a63f1a442d834 (patch)
tree3870a1c9d15fc3fd243fca1e4cd08b54bf75e504
parent3b5ecf3c4a041c4494121d7d5dd36e0fc047910a (diff)
downloadsos-fc0bcf99630f2d80d89100fcc16a63f1a442d834.tar.gz
Fixes #104
Signed-off-by: Adam Stokes <hackr@cypherbook.com>
-rw-r--r--sos/policies/__init__.py4
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"