From 9f07c21d10b20c04ee627cded301e3714c837694 Mon Sep 17 00:00:00 2001 From: "Bryn M. Reeves" Date: Wed, 1 Jun 2016 19:22:43 +0100 Subject: [lightdm] convert to add_journal interface Signed-off-by: Bryn M. Reeves --- sos/plugins/lightdm.py | 6 ++---- 1 file 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" -- cgit