aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2019-11-04 10:45:15 +0000
committerBryn M. Reeves <bmr@redhat.com>2019-11-04 10:45:15 +0000
commitc4182ebd52af523261d2e7ef75affbb88eaf31fb (patch)
treee764ff3b1bc691242bf23617cb35a84734c751a9
parent801c71b33dcfeaa980baa9f377b721bdd26aa5e8 (diff)
downloadsos-c4182ebd52af523261d2e7ef75affbb88eaf31fb.tar.gz
[Plugin] use correct source path when copying directories
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/plugins/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sos/plugins/__init__.py b/sos/plugins/__init__.py
index 60fbeaf7..240fe9f1 100644
--- a/sos/plugins/__init__.py
+++ b/sos/plugins/__init__.py
@@ -800,7 +800,7 @@ class Plugin(object):
if not os.listdir(srcpath):
self.archive.add_dir(dest)
return
- self._copy_dir(dest)
+ self._copy_dir(srcpath)
return
# handle special nodes (block, char, fifo, socket)