diff options
-rw-r--r-- | sos/plugins/unpackaged.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sos/plugins/unpackaged.py b/sos/plugins/unpackaged.py index bf015dad..ad7d5319 100644 --- a/sos/plugins/unpackaged.py +++ b/sos/plugins/unpackaged.py @@ -42,7 +42,8 @@ class Unpackaged(Plugin, RedHatPlugin): for root, dirs, files in os.walk(path, topdown=True): if exclude: - dirs[:] = [d for d in dirs if dirs not in exclude] + for e in exclude: + dirs[:] = [d for d in dirs if d not in e] for name in files: path = os.path.join(root, name) try: |