diff --git a/tools/sosreport/controller.py b/tools/sosreport/controller.py index 3e28eb5b799a..8a2a9a57c119 100644 --- a/tools/sosreport/controller.py +++ b/tools/sosreport/controller.py @@ -70,6 +70,7 @@ def setup(self): for path in SOSREPORT_CONTROLLER_DIRS: self.add_copy_spec(path) - self.add_forbidden_path(SOSREPORT_FORBIDDEN_PATHS) + for path in SOSREPORT_FORBIDDEN_PATHS: + self.add_forbidden_path(path) self.add_cmd_output(SOSREPORT_CONTROLLER_COMMANDS)