aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2017-03-24 16:23:42 +0000
committerBryn M. Reeves <bmr@redhat.com>2017-03-24 16:23:42 +0000
commitc8bdd15bca5f17ad5332afa7c3e2d2d7468e0c1c (patch)
tree3875dc4450fd175139605387220b6ed36d820e81
parent60895a4c5ee363e1c457a16e731fc56851b1ded2 (diff)
downloadsos-c8bdd15bca5f17ad5332afa7c3e2d2d7468e0c1c.tar.gz
[openstack_manila] use wildcard for 'all_logs' collection
The current add_copy_spec_limit() implementation does not correctly support recursive directory addition: to make it more clear that we are collecting everything from the manila log directory use a '*' at the end of the path spec. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/plugins/openstack_manila.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sos/plugins/openstack_manila.py b/sos/plugins/openstack_manila.py
index 041b5f9d..7d6863dc 100644
--- a/sos/plugins/openstack_manila.py
+++ b/sos/plugins/openstack_manila.py
@@ -29,7 +29,7 @@ class OpenStackManila(Plugin):
self.limit = self.get_option("log_size")
if self.get_option("all_logs"):
- self.add_copy_spec_limit("/var/log/manila/",
+ self.add_copy_spec_limit("/var/log/manila/*",
sizelimit=self.limit)
else:
self.add_copy_spec_limit("/var/log/manila/*.log",