diff options
-rw-r--r-- | sos/policies/distros/__init__.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sos/policies/distros/__init__.py b/sos/policies/distros/__init__.py index c33a356a..0906fa77 100644 --- a/sos/policies/distros/__init__.py +++ b/sos/policies/distros/__init__.py @@ -219,11 +219,12 @@ class LinuxPolicy(Policy): cmdline_opts.quiet: try: if caseid: - self.case_id = caseid + self.commons['cmdlineopts'].case_id = caseid else: - self.case_id = input(_("Optionally, please enter the case " - "id that you are generating this " - "report for [%s]: ") % caseid) + self.commons['cmdlineopts'].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(): self.prompt_for_upload_user() |