aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2016-06-01 19:14:32 +0100
committerBryn M. Reeves <bmr@redhat.com>2016-06-02 16:11:40 +0100
commit9bdb7a39cba9e8d3f9580ef21724ae2f492a90bc (patch)
treeb0982a088e13ac2c1ee94de422ee342486c34a26
parent484e47809f02d6f3b3f32f5a1c9e06c395bf1c7f (diff)
downloadsos-9bdb7a39cba9e8d3f9580ef21724ae2f492a90bc.tar.gz
[gdm] convert to add_journal interface
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/plugins/gdm.py6
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 :