aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2017-01-19 11:42:43 +0000
committerBryn M. Reeves <bmr@redhat.com>2017-01-19 11:42:43 +0000
commit9d54fe6fddbd97716c9283a5d5137b825a9c5a17 (patch)
treebcc1b986cf9c5d81c70758283c162456a6011901
parentfdaa7f4dc6900fa2255d074973c7cdfbb43b112e (diff)
downloadsos-9d54fe6fddbd97716c9283a5d5137b825a9c5a17.tar.gz
[canonical_livepatch] use list with add_cmd_output()
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/plugins/canonical_livepatch.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/sos/plugins/canonical_livepatch.py b/sos/plugins/canonical_livepatch.py
index 23e05af5..a01986bb 100644
--- a/sos/plugins/canonical_livepatch.py
+++ b/sos/plugins/canonical_livepatch.py
@@ -25,9 +25,10 @@ class CanonicaLivepatch(Plugin, UbuntuPlugin):
files = ('/snap/bin/canonical-livepatch')
def setup(self):
- self.add_cmd_output(
- "systemctl status snap.canonical-livepatch.canonical-livepatchd")
- self.add_cmd_output("snap run canonical-livepatch status --verbose")
- self.add_cmd_output("snap run canonical-livepatch --version")
+ self.add_cmd_output([
+ "systemctl status snap.canonical-livepatch.canonical-livepatchd",
+ "snap run canonical-livepatch status --verbose",
+ "snap run canonical-livepatch --version"
+ ])
# vim: set et ts=4 sw=4 :