diff options
author | Pavel Moravec <pmoravec@redhat.com> | 2020-10-13 20:14:35 +0200 |
---|---|---|
committer | Jake Hunsaker <jhunsake@redhat.com> | 2020-10-14 10:39:56 -0400 |
commit | 086c1c5ca52b0ed8b810ad5a293a574ba990e635 (patch) | |
tree | 980322a44a8338b2a52cce7c6d7a1f37888dd0c1 | |
parent | ea8d71f8e0ef5cc33252f1b67c1e9db98573666a (diff) | |
download | sos-086c1c5ca52b0ed8b810ad5a293a574ba990e635.tar.gz |
[cleaner] more streamlined sanitize_item method
Remove a duplicate call in both IF branches.
Resolves: #2272
Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
-rw-r--r-- | sos/cleaner/mappings/ip_map.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sos/cleaner/mappings/ip_map.py b/sos/cleaner/mappings/ip_map.py index 45fd9739..e6dffd60 100644 --- a/sos/cleaner/mappings/ip_map.py +++ b/sos/cleaner/mappings/ip_map.py @@ -121,13 +121,12 @@ class SoSIPMap(SoSMap): # network and if it has, replace the default /32 netmask that # ipaddress applies to no CIDR-notated addresses self.set_ip_cidr_from_existing_subnet(addr) - return self.sanitize_ipaddr(addr) else: # we have a CIDR notation, so generate an obfuscated network # address and then generate an IP address within that network's # range self.sanitize_network(network) - return self.sanitize_ipaddr(addr) + return self.sanitize_ipaddr(addr) def sanitize_network(self, network): """Obfuscate the network address provided, and if there are host bits |