aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2016-12-13 22:35:48 +0100
committerBryn M. Reeves <bmr@redhat.com>2017-03-28 14:13:50 +0100
commitc39a3df3ee1380fc6f2b394912923780ff0d9956 (patch)
treec24ea29ec85dc93c3ccdf5ef7478a667bb508ded
parent49eba9185d4e912bccfb5bd711f8aee5a21eebf8 (diff)
downloadsos-c39a3df3ee1380fc6f2b394912923780ff0d9956.tar.gz
[plugins] remove add_copy_spec_limit() - it is now add_copy_spec()
Signed-off-by: Michael Adam <obnox@samba.org>
-rw-r--r--sos/plugins/__init__.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/sos/plugins/__init__.py b/sos/plugins/__init__.py
index 7fe6d2fe..4eca81cb 100644
--- a/sos/plugins/__init__.py
+++ b/sos/plugins/__init__.py
@@ -505,7 +505,7 @@ class Plugin(object):
def _add_copy_paths(self, copy_paths):
self.copy_paths.update(copy_paths)
- def add_copy_spec_limit(self, copyspecs, sizelimit=None, tailit=True):
+ def add_copy_spec(self, copyspecs, sizelimit=None, tailit=True):
"""Add a file or glob but limit it to sizelimit megabytes. If fname is
a single file the file will be tailed to meet sizelimit. If the first
file in a glob is too large it will be tailed to meet the sizelimit.
@@ -555,9 +555,6 @@ class Plugin(object):
self.name(), strfile)
self.archive.add_link(link_path, _file)
- def add_copy_spec(self, copyspecs, sizelimit=None, tailit=True):
- self.add_copy_spec_limit(copyspecs, sizelimit, tailit)
-
def get_command_output(self, prog, timeout=300, stderr=True,
chroot=True, runat=None, env=None):
if chroot or self.commons['cmdlineopts'].chroot == 'always':