From a7ccf68366cc5481570f821e8cfd4bd84b7e7c8d Mon Sep 17 00:00:00 2001 From: "Bryn M. Reeves" Date: Mon, 2 Jul 2018 13:12:13 +0100 Subject: [Policy] allow final archive messages to bypass --quiet Always output the tarball or build tree location, regardless of the value of -q/--quiet. Signed-off-by: Bryn M. Reeves --- sos/policies/__init__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sos/policies/__init__.py b/sos/policies/__init__.py index 45eecfe1..7b301dec 100644 --- a/sos/policies/__init__.py +++ b/sos/policies/__init__.py @@ -519,10 +519,10 @@ No changes will be made to system configuration. if archive: self._print(_("Your sosreport has been generated and saved " - "in:\n %s") % archive) + "in:\n %s") % archive, always=True) else: self._print(_("sosreport build tree is located at : %s" % - directory)) + directory), always=True) self._print() if checksum: @@ -532,10 +532,10 @@ No changes will be made to system configuration. "representative.")) self._print() - def _print(self, msg=None): + def _print(self, msg=None, always=False): """A wrapper around print that only prints if we are not running in quiet mode""" - if not self.commons['cmdlineopts'].quiet: + if always or not self.commons['cmdlineopts'].quiet: if msg: print_(msg) else: -- cgit