aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Moravec <pmoravec@redhat.com>2019-03-22 12:43:33 +0100
committerBryn M. Reeves <bmr@redhat.com>2019-03-22 14:56:15 +0000
commit999cef2e72ffbf86c58ed577abe089874619ac30 (patch)
treeb5aa8276e3690cca1d29add9d254f5af6a28b851
parent5928c73fd777d0695010ff4d159257b5cff440f1 (diff)
downloadsos-999cef2e72ffbf86c58ed577abe089874619ac30.tar.gz
[candlepin] collect all types of logrotated patterns
Logrotated files can have suffix starting by '-' or '.' also. Relevant to: #1612 Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
-rw-r--r--sos/plugins/candlepin.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sos/plugins/candlepin.py b/sos/plugins/candlepin.py
index d02a80fd..a21a1207 100644
--- a/sos/plugins/candlepin.py
+++ b/sos/plugins/candlepin.py
@@ -29,10 +29,10 @@ class Candlepin(Plugin, RedHatPlugin):
self.add_copy_spec([
"/etc/candlepin/candlepin.conf",
"/var/log/candlepin/audit*.log*",
- "/var/log/candlepin/candlepin.log-*",
+ "/var/log/candlepin/candlepin.log[.-]*",
"/var/log/candlepin/cpdb*.log*",
"/var/log/candlepin/cpinit*.log*",
- "/var/log/candlepin/error.log-*"
+ "/var/log/candlepin/error.log[.-]*"
])
self.add_cmd_output("du -sh /var/lib/candlepin/*/*")