diff options
author | Bryn M. Reeves <bmr@redhat.com> | 2016-06-01 19:22:43 +0100 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2016-06-02 16:11:40 +0100 |
commit | 9f07c21d10b20c04ee627cded301e3714c837694 (patch) | |
tree | a22527aa801c3b104c93e45c9394e497b644ab5a | |
parent | 31945750fc318d93e314126df8d85cfca71983e5 (diff) | |
download | sos-9f07c21d10b20c04ee627cded301e3714c837694.tar.gz |
[lightdm] convert to add_journal interface
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r-- | sos/plugins/lightdm.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sos/plugins/lightdm.py b/sos/plugins/lightdm.py index d8c768ac..ec18e500 100644 --- a/sos/plugins/lightdm.py +++ b/sos/plugins/lightdm.py @@ -25,10 +25,8 @@ class LightDm(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin): plugin_name = 'lightdm' def setup(self): - self.add_cmd_output([ - "journalctl -u lightdm", - "systemctl status lightdm.service" - ]) + self.add_cmd_output(systemctl status lightdm.service) + self.add_journal(units="lightdm") self.add_copy_spec([ "/etc/lightdm/lightdm.conf", "/etc/lightdm/users.conf" |