diff options
author | Bryn M. Reeves <bmr@redhat.com> | 2016-06-01 19:14:32 +0100 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2016-06-02 16:11:40 +0100 |
commit | 9bdb7a39cba9e8d3f9580ef21724ae2f492a90bc (patch) | |
tree | b0982a088e13ac2c1ee94de422ee342486c34a26 | |
parent | 484e47809f02d6f3b3f32f5a1c9e06c395bf1c7f (diff) | |
download | sos-9bdb7a39cba9e8d3f9580ef21724ae2f492a90bc.tar.gz |
[gdm] convert to add_journal interface
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r-- | sos/plugins/gdm.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sos/plugins/gdm.py b/sos/plugins/gdm.py index cd4c4b3f..c1ba8f6c 100644 --- a/sos/plugins/gdm.py +++ b/sos/plugins/gdm.py @@ -24,9 +24,7 @@ class Gdm(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin): def setup(self): self.add_copy_spec("/etc/gdm/*") - self.add_cmd_output([ - "journalctl -u gdm", - "systemctl status gdm.service" - ]) + self.add_journal(unit="gdm") + self.add_cmd_output("systemctl status gdm.service") # vim: set et ts=4 sw=4 : |