aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Moravec <pmoravec@redhat.com>2021-05-13 18:41:13 +0200
committerJake Hunsaker <jhunsake@redhat.com>2021-05-14 09:57:55 -0400
commit66df63922275d5bee1c1b33d31bee18c006d4f42 (patch)
tree889ed8995fc95a8e761695d21d8233c1d73a57f4
parent823567e2f2bd14b7a6f11224567171c3aba98c48 (diff)
downloadsos-66df63922275d5bee1c1b33d31bee18c006d4f42.tar.gz
[policy,collector] State explicitly that caseid is optional
While providing case id is fully optional, the current phrasing might be insintepreted it is mandatory. Resolves: #2542 Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
-rw-r--r--sos/collector/__init__.py3
-rw-r--r--sos/policies/distros/__init__.py4
2 files changed, 4 insertions, 3 deletions
diff --git a/sos/collector/__init__.py b/sos/collector/__init__.py
index 1ae73508..5c1b2ee8 100644
--- a/sos/collector/__init__.py
+++ b/sos/collector/__init__.py
@@ -1061,7 +1061,8 @@ this utility or remote systems that it connects to.
self.exit("Exiting on user cancel", 130)
if not self.opts.case_id and not self.opts.batch:
- msg = 'Please enter the case id you are collecting reports for: '
+ msg = 'Optionally, please enter the case id you are collecting ' \
+ 'reports for: '
self.opts.case_id = input(msg)
def execute(self):
diff --git a/sos/policies/distros/__init__.py b/sos/policies/distros/__init__.py
index dd378733..0a77dbbc 100644
--- a/sos/policies/distros/__init__.py
+++ b/sos/policies/distros/__init__.py
@@ -194,8 +194,8 @@ class LinuxPolicy(Policy):
if caseid:
self.case_id = caseid
else:
- self.case_id = input(_("Please enter the case id "
- "that you are generating this "
+ self.case_id = input(_("Optionally, please enter the case "
+ "id that you are generating this "
"report for [%s]: ") % caseid)
# Policies will need to handle the prompts for user information
if cmdline_opts.upload and self.get_upload_url():