aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/lib/sos/policyredhat.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/lib/sos/policyredhat.py b/src/lib/sos/policyredhat.py
index 791a6409..87addf89 100755
--- a/src/lib/sos/policyredhat.py
+++ b/src/lib/sos/policyredhat.py
@@ -76,14 +76,19 @@ class SosPolicy:
def packageResults(self):
print "Packaging reults to send to support . . ."
- print "Please enter your first initial and last name (jsmith): ",
- name = sys.stdin.readline()[:-1]
+ name=""
+ while len(name)==0:
+ print "Please enter your first initial and last name (jsmith): ",
+ name = sys.stdin.readline()[:-1]
print "Please enter the case number that you are generating this",
print "report for: ",
ticketNumber = sys.stdin.readline()[:-1]
- namestr = name + "." + ticketNumber
+ if len(ticketNumber):
+ namestr = name + "." + ticketNumber
+ else:
+ namestr = name
ourtempdir = gettempdir()
tarballName = os.path.join(ourtempdir, namestr + ".tar.bz2")