[sos-devel] [PATCH] sosreport: Accept commas, period and alphas in the case number
Aruna Balakrishnaiah
aruna at linux.vnet.ibm.com
Thu Jul 10 10:10:00 UTC 2014
sosreport does not accept commas, period and alphas in the case
number, the patch fixes the same.
Signed-off-by: Aruna Balakrishnaiah <aruna at linux.vnet.ibm.com>
---
sos/policies/__init__.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sos/policies/__init__.py b/sos/policies/__init__.py
index 11995ff..55919f9 100644
--- a/sos/policies/__init__.py
+++ b/sos/policies/__init__.py
@@ -383,7 +383,7 @@ class LinuxPolicy(Policy):
return re.sub(r"[^-a-zA-Z.0-9]", "", report_name)
def sanitize_ticket_number(self, ticket_number):
- return re.sub(r"[^0-9]", "", ticket_number)
+ return re.sub(r"[^-a-z,A-Z.0-9]", "", ticket_number)
def pre_work(self):
# this method will be called before the gathering begins
More information about the sos-devel
mailing list