diff options
-rw-r--r-- | sos/cleaner/obfuscation_archive.py | 10 | ||||
-rw-r--r-- | sos/cleaner/parsers/ip_parser.py | 16 |
2 files changed, 16 insertions, 10 deletions
diff --git a/sos/cleaner/obfuscation_archive.py b/sos/cleaner/obfuscation_archive.py index 981cc05f..84ca30cd 100644 --- a/sos/cleaner/obfuscation_archive.py +++ b/sos/cleaner/obfuscation_archive.py @@ -59,20 +59,10 @@ class SoSObfuscationArchive(): Returns: list of files and file regexes """ return [ - 'installed-debs', - 'installed-rpms', - 'sos_commands/dpkg', - 'sos_commands/python/pip_list', - 'sos_commands/rpm', - 'sos_commands/yum/.*list.*', - 'sos_commands/snappy/snap_list_--all', - 'sos_commands/snappy/snap_--version', - 'sos_commands/vulkan/vulkaninfo', 'sys/firmware', 'sys/fs', 'sys/kernel/debug', 'sys/module', - 'var/log/.*dnf.*', r'.*\.tar$', # TODO: support archive unpacking # Be explicit with these tar matches to avoid matching commands r'.*\.tar\.xz', diff --git a/sos/cleaner/parsers/ip_parser.py b/sos/cleaner/parsers/ip_parser.py index 3ea7f865..08d1cd05 100644 --- a/sos/cleaner/parsers/ip_parser.py +++ b/sos/cleaner/parsers/ip_parser.py @@ -24,6 +24,22 @@ class SoSIPParser(SoSCleanerParser): # don't match package versions recorded in journals r'.*dnf\[.*\]:' ] + + skip_files = [ + # skip these as version numbers will frequently look like IP addresses + # when using regex matching + 'installed-debs', + 'installed-rpms', + 'sos_commands/dpkg', + 'sos_commands/python/pip_list', + 'sos_commands/rpm', + 'sos_commands/yum/.*list.*', + 'sos_commands/snappy/snap_list_--all', + 'sos_commands/snappy/snap_--version', + 'sos_commands/vulkan/vulkaninfo', + 'var/log/.*dnf.*' + ] + map_file_key = 'ip_map' prep_map_file = 'sos_commands/networking/ip_-o_addr' |