From 6817aae35c6507ce87a9d4445ee79a54ca12e90e Mon Sep 17 00:00:00 2001 From: "Bryn M. Reeves" Date: Tue, 28 Mar 2017 15:48:00 +0100 Subject: [openstack_*] convert add_copy_spec_limit -> add_copy_spec Signed-off-by: Bryn M. Reeves --- sos/plugins/openstack_instack.py | 16 ++++++++-------- sos/plugins/openstack_manila.py | 8 ++++---- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/sos/plugins/openstack_instack.py b/sos/plugins/openstack_instack.py index 074325c9..30acecf0 100644 --- a/sos/plugins/openstack_instack.py +++ b/sos/plugins/openstack_instack.py @@ -34,15 +34,15 @@ class OpenStackInstack(Plugin): self.limit = self.get_option("log_size") if self.get_option("all_logs"): - self.add_copy_spec_limit("/var/log/mistral/", - sizelimit=self.limit) - self.add_copy_spec_limit("/var/log/zaqar/", - sizelimit=self.limit) + self.add_copy_spec("/var/log/mistral/", + sizelimit=self.limit) + self.add_copy_spec("/var/log/zaqar/", + sizelimit=self.limit) else: - self.add_copy_spec_limit("/var/log/mistral/*.log", - sizelimit=self.limit) - self.add_copy_spec_limit("/var/log/zaqar/*.log", - sizelimit=self.limit) + self.add_copy_spec("/var/log/mistral/*.log", + sizelimit=self.limit) + self.add_copy_spec("/var/log/zaqar/*.log", + sizelimit=self.limit) vars = [p in os.environ for p in [ 'OS_USERNAME', 'OS_PASSWORD', 'OS_TENANT_NAME']] diff --git a/sos/plugins/openstack_manila.py b/sos/plugins/openstack_manila.py index 7d6863dc..b6045855 100644 --- a/sos/plugins/openstack_manila.py +++ b/sos/plugins/openstack_manila.py @@ -29,11 +29,11 @@ class OpenStackManila(Plugin): self.limit = self.get_option("log_size") if self.get_option("all_logs"): - self.add_copy_spec_limit("/var/log/manila/*", - sizelimit=self.limit) + self.add_copy_spec("/var/log/manila/*", + sizelimit=self.limit) else: - self.add_copy_spec_limit("/var/log/manila/*.log", - sizelimit=self.limit) + self.add_copy_spec("/var/log/manila/*.log", + sizelimit=self.limit) def postproc(self): protect_keys = [ -- cgit