diff --git a/sos/report/plugins/saltmaster.py b/sos/report/plugins/saltmaster.py index 6edd3fbdf1..110a60990d 100644 --- a/sos/report/plugins/saltmaster.py +++ b/sos/report/plugins/saltmaster.py @@ -21,6 +21,8 @@ class SaltMaster(Plugin, IndependentPlugin): packages = ('salt-master', 'salt-api',) def setup(self): + self.collected_pillar_roots = [] + if self.get_option("all_logs"): self.add_copy_spec("/var/log/salt") else: @@ -61,11 +63,22 @@ def add_pillar_roots(self): cfg_pillar_roots = [] all_pillar_roots.extend(cfg_pillar_roots) + self.collected_pillar_roots = all_pillar_roots self.add_copy_spec(all_pillar_roots) def postproc(self): - regexp = r'(^\s+.*(pass|secret|(?