From 9529386dc3691cbb78b4495317a120729cecac4a Mon Sep 17 00:00:00 2001 From: Rudnei Bertol Junior Date: Thu, 25 Apr 2024 18:52:22 +0000 Subject: Including settings.local.py file to be collected and parsed. This change, allows the sosreport to collect the settings.local.py file, when customer has custom changes out of the default settings.py file. Signed-off-by: Rudnei Bertol Junior --- sos/report/plugins/pulp.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sos/report/plugins/pulp.py b/sos/report/plugins/pulp.py index a8a7c44f..4c816036 100644 --- a/sos/report/plugins/pulp.py +++ b/sos/report/plugins/pulp.py @@ -73,6 +73,7 @@ class Pulp(Plugin, RedHatPlugin): self.add_copy_spec([ "/etc/pulp/*.conf", "/etc/pulp/settings.py", + "/etc/pulp/settings.local.py", "/etc/pulp/server/plugins.conf.d/", "/etc/default/pulp*", "/var/log/httpd/pulp-http.log*", @@ -181,6 +182,8 @@ class Pulp(Plugin, RedHatPlugin): r"(\"|'|:)+)\s*(\S*)" repl = r"\1 ********" self.do_path_regex_sub("/etc/pulp/settings.py", key_pass_re, repl) + self.do_path_regex_sub("/etc/pulp/settings.local.py", key_pass_re, + repl) self.do_cmd_output_sub("dynaconf list", key_pass_re, repl) # vim: set et ts=4 sw=4 : -- cgit