aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArif Ali <arif.ali@canonical.com>2024-05-16 18:00:29 +0100
committerJake Hunsaker <jacob.r.hunsaker@gmail.com>2024-05-16 17:22:52 -0400
commitbfdabffc4daa0b1c1fd42d333eb2f40006a8f75d (patch)
treeb9f630bdd63314c0033f1ed8d99050467764527a
parent38dc6319b7649920b489d72bcc6cede525bf2024 (diff)
downloadsos-bfdabffc4daa0b1c1fd42d333eb2f40006a8f75d.tar.gz
[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 <arif.ali@canonical.com>
-rw-r--r--sos/report/plugins/canonical_livepatch.py9
1 files 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 :