aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sos/plugins/__init__.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/sos/plugins/__init__.py b/sos/plugins/__init__.py
index d3d42e79..713c7278 100644
--- a/sos/plugins/__init__.py
+++ b/sos/plugins/__init__.py
@@ -912,6 +912,9 @@ class Plugin(object):
limit_reached = False
for _file in files:
+ if _file in self.copy_paths:
+ self._log_debug("skipping redundant file '%s'" % _file)
+ continue
if self._is_forbidden_path(_file):
self._log_debug("skipping forbidden path '%s'" % _file)
continue