Skip to content

Commit

Permalink
Including settings.local.py file to be collected and parsed.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
rbertol authored and TurboTurtle committed Apr 26, 2024
1 parent 3a0c73d commit 9529386
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sos/report/plugins/pulp.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ def setup(self):
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*",
Expand Down Expand Up @@ -181,6 +182,8 @@ def postproc(self):
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 :

0 comments on commit 9529386

Please sign in to comment.