aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Walladge <samuel.walladge@canonical.com>2023-01-06 09:25:15 +1030
committerJake Hunsaker <jhunsake@redhat.com>2023-01-09 10:05:45 -0500
commitb409ebc82227608d5194d17b40807c5c215fd30d (patch)
treea1ac9c72111d5b60473a05dc46eda7eb5db78bad
parentced8cd8c105d0801963a9cbd346181bc086316e1 (diff)
downloadsos-b409ebc82227608d5194d17b40807c5c215fd30d.tar.gz
[Plugin] Fix docstring in add_copy_spec
The string or list strings in the param `copyspecs` are processed as globs, not regular expressions. Signed-off-by: Samuel Walladge <samuel.walladge@canonical.com>
-rw-r--r--sos/report/plugins/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sos/report/plugins/__init__.py b/sos/report/plugins/__init__.py
index d5521ead..1624ca37 100644
--- a/sos/report/plugins/__init__.py
+++ b/sos/report/plugins/__init__.py
@@ -1631,9 +1631,9 @@ class Plugin():
def add_copy_spec(self, copyspecs, sizelimit=None, maxage=None,
tailit=True, pred=None, tags=[], container=None):
- """Add a file, directory, or regex matching filepaths to the archive
+ """Add a file, directory, or globs matching filepaths to the archive
- :param copyspecs: A file, directory, or regex matching filepaths
+ :param copyspecs: Files, directories, or globs matching filepaths
:type copyspecs: ``str`` or a ``list`` of strings
:param sizelimit: Limit the total size of collections from `copyspecs`