aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2018-06-21 16:46:41 +0100
committerBryn M. Reeves <bmr@redhat.com>2018-06-21 16:46:41 +0100
commit6c22ae877e1311b489e2ec25d38c879ccb6f71dc (patch)
treec12df34afcf8984045f2f219955b25de04b40392
parentac6f0de011dd870da9c6f8cea4696ea2a0a18bdc (diff)
downloadsos-6c22ae877e1311b489e2ec25d38c879ccb6f71dc.tar.gz
[Plugin] pass correct sizelimit value to _add_cmd_output()
In the refactoring of the limit setting in add_journal(), the variable used to store the final setting was changed from the 'sizelimit' arg to a new 'log_size' local variable. Make sure the correct 'log_size' is passed on to _add_cmd_output(). Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/plugins/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sos/plugins/__init__.py b/sos/plugins/__init__.py
index 16a6227e..82fef18e 100644
--- a/sos/plugins/__init__.py
+++ b/sos/plugins/__init__.py
@@ -875,7 +875,7 @@ class Plugin(object):
self._log_debug("collecting journal: %s" % journal_cmd)
self._add_cmd_output(journal_cmd, timeout=timeout,
- sizelimit=sizelimit)
+ sizelimit=log_size)
def add_udev_info(self, device, attrs=False):
"""Collect udevadm info output for a given device