diff options
author | Bryn M. Reeves <bmr@redhat.com> | 2019-09-24 16:28:27 +0100 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2019-09-24 16:34:36 +0100 |
commit | dd11ed6880895d15734195c476ba892967f8daca (patch) | |
tree | c75ab748f114f4e4b1a5364121c1631aff9e5914 | |
parent | c6f3ed7e99c2f3b4982a1d3460dfa56246a3d752 (diff) | |
download | sos-dd11ed6880895d15734195c476ba892967f8daca.tar.gz |
[gdm,lightdm] use add_service_status()
Related: #1667
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r-- | sos/plugins/gdm.py | 2 | ||||
-rw-r--r-- | sos/plugins/lightdm.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sos/plugins/gdm.py b/sos/plugins/gdm.py index b772264a..33390891 100644 --- a/sos/plugins/gdm.py +++ b/sos/plugins/gdm.py @@ -20,6 +20,6 @@ class Gdm(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin): def setup(self): self.add_copy_spec("/etc/gdm/*") self.add_journal(units="gdm") - self.add_cmd_output("systemctl status gdm.service") + self.add_service_status("gdm") # vim: set et ts=4 sw=4 : diff --git a/sos/plugins/lightdm.py b/sos/plugins/lightdm.py index e51545f5..2135b8f7 100644 --- a/sos/plugins/lightdm.py +++ b/sos/plugins/lightdm.py @@ -19,7 +19,7 @@ class LightDm(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin): plugin_name = 'lightdm' def setup(self): - self.add_cmd_output("systemctl status lightdm.service") + self.add_service_status("lightdm") self.add_journal(units="lightdm") self.add_copy_spec([ "/etc/lightdm/lightdm.conf", |