diff options
author | Rudnei Bertol Junior <rudnei@redhat.com> | 2024-04-25 18:52:22 +0000 |
---|---|---|
committer | Jake Hunsaker <jacob.r.hunsaker@gmail.com> | 2024-04-26 15:12:56 -0400 |
commit | 9529386dc3691cbb78b4495317a120729cecac4a (patch) | |
tree | 57d38e45857989f2600e91b69c6a83d11df75202 | |
parent | 3a0c73d33ad40b2ed5bfb675925b1aae5edf29a3 (diff) | |
download | sos-9529386dc3691cbb78b4495317a120729cecac4a.tar.gz |
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 <rudnei@redhat.com>
-rw-r--r-- | sos/report/plugins/pulp.py | 3 |
1 files changed, 3 insertions, 0 deletions
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 : |