diff options
author | Bryn M. Reeves <bmr@redhat.com> | 2017-03-28 15:48:00 +0100 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2017-03-28 15:48:00 +0100 |
commit | 6817aae35c6507ce87a9d4445ee79a54ca12e90e (patch) | |
tree | 883c00102f73c8171b805c168121c9792f75c45a | |
parent | 5c99b504dc7d1f3e45f2733787ee6834fbd6d1c0 (diff) | |
download | sos-6817aae35c6507ce87a9d4445ee79a54ca12e90e.tar.gz |
[openstack_*] convert add_copy_spec_limit -> add_copy_spec
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r-- | sos/plugins/openstack_instack.py | 16 | ||||
-rw-r--r-- | 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 = [ |