aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2018-06-20 17:43:01 +0100
committerBryn M. Reeves <bmr@redhat.com>2018-06-20 17:47:19 +0100
commit76593ff7c901b99ac7b2f24efe56944e642c872e (patch)
tree93b735c82fdc7a33d9ebf09d381bc4d66169707d
parent9ab8d1cca73b57e027a7edb0d95bf5f00a8a7e80 (diff)
downloadsos-76593ff7c901b99ac7b2f24efe56944e642c872e.tar.gz
[Plugin] fix Plugin.add_cmd_output() kwarg use
The add_cmd_output() 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__.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/sos/plugins/__init__.py b/sos/plugins/__init__.py
index 3f434353..6c489fdb 100644
--- a/sos/plugins/__init__.py
+++ b/sos/plugins/__init__.py
@@ -673,9 +673,10 @@ class Plugin(object):
if len(cmds) > 1 and (suggest_filename or root_symlink):
self._log_warn("ambiguous filename or symlink for command list")
for cmd in cmds:
- self._add_cmd_output(cmd, suggest_filename,
- root_symlink, timeout, stderr,
- chroot, runat, env, binary, sizelimit)
+ self._add_cmd_output(cmd, suggest_filename=suggest_filename,
+ root_symlink=root_symlink, timeout=timeout,
+ stderr=stderr, chroot=chroot, runat=runat,
+ env=env, binary=binary, sizelimit=sizelimit)
def get_cmd_output_path(self, name=None, make=True):
"""Return a path into which this module should store collected