diff options
Diffstat (limited to 'sos')
-rw-r--r-- | sos/plugins/ovirt.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/sos/plugins/ovirt.py b/sos/plugins/ovirt.py index b169b903..407c9189 100644 --- a/sos/plugins/ovirt.py +++ b/sos/plugins/ovirt.py @@ -171,4 +171,19 @@ class Ovirt(Plugin, RedHatPlugin): r'{key}=********'.format(key=key) ) + # Answer files contain passwords + for key in ( + 'OVESETUP_CONFIG/adminPassword', + 'OVESETUP_CONFIG/remoteEngineHostRootPassword', + 'OVESETUP_DWH_DB/password', + 'OVESETUP_DB/password', + 'OVESETUP_REPORTS_CONFIG/adminPassword', + 'OVESETUP_REPORTS_DB/password', + ): + self.do_path_regex_sub( + r'/var/lib/ovirt-engine/setup/answers/.*', + r'{key}=(.*)'.format(key=key), + r'{key}=********'.format(key=key) + ) + # vim: expandtab tabstop=4 shiftwidth=4 |