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

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