Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[redhat] Backports of enhancements for RHEL7 #3475

Merged
merged 3 commits into from
Mar 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions sos/plugins/candlepin.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,13 @@ def setup(self):
self.add_cmd_output(_cmd, suggest_filename='candlepin_db_tables_sizes',
env=self.env)

_cmd = self.build_query_cmd("\
SELECT displayname, content_access_mode \
FROM cp_owner;")
self.add_cmd_output(_cmd,
suggest_filename='simple_content_access',
env=self.env)

def build_query_cmd(self, query, csv=False):
"""
Builds the command needed to invoke the pgsql query as the postgres
Expand Down
5 changes: 5 additions & 0 deletions sos/plugins/foreman.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,12 @@ def postproc(self):
"/var/log/foreman-installer/sat*",
sat_debug_reg,
r"\1 \2 ********")
# also hide passwords in yet different formats
self.do_path_regex_sub(
"/var/log/foreman-installer/sat*",
r"(\.|_|-)password(=\'|=|\", \")(\w*)",
r"\1password\2********")
self.do_path_regex_sub(
"/var/log/foreman-installer/foreman-proxy*",
r"(\s*proxy_password\s=) (.*)",
r"\1 ********")
Expand Down
2 changes: 2 additions & 0 deletions sos/plugins/rpm.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,6 @@ def add_rpm_cmd(query_fmt, filter_cmd, symlink, suggest):
suggest_filename='lsof_D_var_lib_rpm')
self.add_copy_spec("/var/lib/rpm")

self.add_cmd_output("rpm --showrc")

# vim: set et ts=4 sw=4 :