Skip to content

Commit

Permalink
[livepatch] Add config output and bring out service
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
arif-ali authored and TurboTurtle committed May 16, 2024
1 parent 38dc631 commit bfdabff
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions sos/report/plugins/canonical_livepatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 :

0 comments on commit bfdabff

Please sign in to comment.