diff options
author | Bryn M. Reeves <bmr@redhat.com> | 2014-07-07 20:27:00 +0100 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2014-07-07 20:27:00 +0100 |
commit | 9fdbd4fe40ba3aba203aeb14b5a064dc4e080874 (patch) | |
tree | 2392575ea32a045a6af33b961b1d174238b71522 | |
parent | 9b3a1a2788ce36f8f008aa7abcf88cc87b067ea2 (diff) | |
download | sos-9fdbd4fe40ba3aba203aeb14b5a064dc4e080874.tar.gz |
[systemd] do not verify journal unless --verify is given
Related: #304.
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r-- | sos/plugins/systemd.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sos/plugins/systemd.py b/sos/plugins/systemd.py index ae60c914..c5aa6648 100644 --- a/sos/plugins/systemd.py +++ b/sos/plugins/systemd.py @@ -34,7 +34,6 @@ class Systemd(Plugin, RedHatPlugin): "systemctl list-unit-files", "systemctl show-environment", "systemd-delta", - "journalctl --verify", "journalctl --all --this-boot --no-pager", "journalctl --all --this-boot --no-pager -o verbose", "ls -l /lib/systemd", @@ -43,6 +42,9 @@ class Systemd(Plugin, RedHatPlugin): "ls -l /lib/systemd/user-generators" ]) + if self.get_option("verify"): + self.add_cmd_output("journalctl --verify") + self.add_copy_specs([ "/etc/systemd", "/lib/systemd/system", |