From bfdabffc4daa0b1c1fd42d333eb2f40006a8f75d Mon Sep 17 00:00:00 2001 From: Arif Ali Date: Thu, 16 May 2024 18:00:29 +0100 Subject: [livepatch] Add config output and bring out service Add the service in the service dict so that we collect the journal for the corresponding service. Also acts as an extra trigger. Obfuscate the certs that the config outputs Signed-off-by: Arif Ali --- sos/report/plugins/canonical_livepatch.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/sos/report/plugins/canonical_livepatch.py b/sos/report/plugins/canonical_livepatch.py index 1088c2f3..604b21cf 100644 --- a/sos/report/plugins/canonical_livepatch.py +++ b/sos/report/plugins/canonical_livepatch.py @@ -18,13 +18,16 @@ class CanonicaLivepatch(Plugin, UbuntuPlugin): plugin_name = 'canonical_livepatch' profiles = ('system', 'kernel') commands = ('canonical-livepatch',) + services = ('snap.canonical-livepatch.canonical-livepatchd',) def setup(self): self.add_cmd_output([ "canonical-livepatch status --verbose", - "canonical-livepatch --version" + "canonical-livepatch --version", + "canonical-livepatch config", ]) - self.add_service_status( - "snap.canonical-livepatch.canonical-livepatchd") + + def postproc(self): + self.do_cmd_private_sub("canonical-livepatch config") # vim: set et ts=4 sw=4 : -- cgit