Blame SOURCES/sos-bz1353873-pcp-logsize.patch
|
|
7b9b39 |
From 1932d96dcf9071d1180286b96abfd998e20a09fd Mon Sep 17 00:00:00 2001
|
|
|
7b9b39 |
From: Pavel Moravec <pmoravec@redhat.com>
|
|
|
7b9b39 |
Date: Thu, 11 Jan 2018 12:52:34 +0100
|
|
|
7b9b39 |
Subject: [PATCH] [pcp] really apply sizelimit to logs collected
|
|
|
7b9b39 |
|
|
|
7b9b39 |
add_copy_spec must be called to files and not dirs, to apply sizelimit
|
|
|
7b9b39 |
|
|
|
7b9b39 |
Resolves: #1187
|
|
|
7b9b39 |
|
|
|
7b9b39 |
Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
|
|
|
7b9b39 |
---
|
|
|
7b9b39 |
sos/plugins/pcp.py | 2 +-
|
|
|
7b9b39 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
7b9b39 |
|
|
|
7b9b39 |
diff --git a/sos/plugins/pcp.py b/sos/plugins/pcp.py
|
|
|
7b9b39 |
index 12537526b..8f17a5de5 100644
|
|
|
7b9b39 |
--- a/sos/plugins/pcp.py
|
|
|
7b9b39 |
+++ b/sos/plugins/pcp.py
|
|
|
7b9b39 |
@@ -122,7 +122,7 @@ def setup(self):
|
|
|
7b9b39 |
if self.pcp_hostname != '':
|
|
|
7b9b39 |
for pmdir in ('pmlogger', 'pmmgr'):
|
|
|
7b9b39 |
path = os.path.join(self.pcp_log_dir, pmdir,
|
|
|
7b9b39 |
- self.pcp_hostname)
|
|
|
7b9b39 |
+ self.pcp_hostname, '*')
|
|
|
7b9b39 |
self.add_copy_spec(path, sizelimit=self.limit)
|
|
|
7b9b39 |
|
|
|
7b9b39 |
self.add_copy_spec([
|