diff options
author | Bryn M. Reeves <bmr@redhat.com> | 2018-07-02 13:12:13 +0100 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2018-07-02 13:12:13 +0100 |
commit | a7ccf68366cc5481570f821e8cfd4bd84b7e7c8d (patch) | |
tree | e5f28fc27ac0471dae1b4b17e87097f9c25ad05b | |
parent | b96bdab03f06408e162b1733b20e8ba9fbf8e012 (diff) | |
download | sos-a7ccf68366cc5481570f821e8cfd4bd84b7e7c8d.tar.gz |
[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 <bmr@redhat.com>
-rw-r--r-- | sos/policies/__init__.py | 8 |
1 files 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: |