Blame SOURCES/sos-bz1719884-pcp-pmlogger-no-limit.patch

5baea9
From 380737d0bf4021434db4d5e479f0b8a2aece6ec9 Mon Sep 17 00:00:00 2001
5baea9
From: Pavel Moravec <pmoravec@redhat.com>
5baea9
Date: Thu, 4 Apr 2019 10:43:24 +0200
5baea9
Subject: [PATCH] [pcp] collect pmlogger without a sizelimit
5baea9
5baea9
sizelimit=None defaults to --log-size, use sizelimit=0 instead
5baea9
5baea9
Resolves: #1632
5baea9
5baea9
Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
5baea9
---
5baea9
 sos/plugins/pcp.py | 2 +-
5baea9
 1 file changed, 1 insertion(+), 1 deletion(-)
5baea9
5baea9
diff --git a/sos/plugins/pcp.py b/sos/plugins/pcp.py
5baea9
index da7158a6..da2a6611 100644
5baea9
--- a/sos/plugins/pcp.py
5baea9
+++ b/sos/plugins/pcp.py
5baea9
@@ -130,7 +130,7 @@ class Pcp(Plugin, RedHatPlugin, DebianPlugin):
5baea9
             pmlogger_ls = self.get_cmd_output_now("ls -t1 %s" % path)
5baea9
             if pmlogger_ls:
5baea9
                 for line in open(pmlogger_ls).read().splitlines():
5baea9
-                    self.add_copy_spec(line, sizelimit=None)
5baea9
+                    self.add_copy_spec(line, sizelimit=0)
5baea9
                     files_collected = files_collected + 1
5baea9
                     if self.countlimit and files_collected == self.countlimit:
5baea9
                         break
5baea9
-- 
5baea9
2.17.2
5baea9