aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2018-06-20 17:49:27 +0100
committerBryn M. Reeves <bmr@redhat.com>2018-06-20 17:49:27 +0100
commit4ca1ee26b60f254dd65f8d8744e05d5ac12a3bdd (patch)
treed8a100e7aa78bbbfbfe5dbdf2c5db64574c268c0
parent76593ff7c901b99ac7b2f24efe56944e642c872e (diff)
downloadsos-4ca1ee26b60f254dd65f8d8744e05d5ac12a3bdd.tar.gz
[Plugin] fix Plugin.add_journal() kwarg use
The add_journal() method _must_ use explicit kwarg notation when calling the _add_cmd_output() helper. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/plugins/__init__.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/sos/plugins/__init__.py b/sos/plugins/__init__.py
index 6c489fdb..b1c225db 100644
--- a/sos/plugins/__init__.py
+++ b/sos/plugins/__init__.py
@@ -867,9 +867,8 @@ class Plugin(object):
journal_cmd += output_opt % output
self._log_debug("collecting journal: %s" % journal_cmd)
- self._add_cmd_output(journal_cmd, None, None, timeout,
- sizelimit=sizelimit
- )
+ self._add_cmd_output(journal_cmd, timeout=timeout,
+ sizelimit=sizelimit)
def add_udev_info(self, device, attrs=False):
"""Collect udevadm info output for a given device