Blame SOURCES/sos-bz1827801-streamlined-sanitize_item.patch

8bcace
From 086c1c5ca52b0ed8b810ad5a293a574ba990e635 Mon Sep 17 00:00:00 2001
8bcace
From: Pavel Moravec <pmoravec@redhat.com>
8bcace
Date: Tue, 13 Oct 2020 20:14:35 +0200
8bcace
Subject: [PATCH] [cleaner] more streamlined sanitize_item method
8bcace
8bcace
Remove a duplicate call in both IF branches.
8bcace
8bcace
Resolves: #2272
8bcace
8bcace
Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
8bcace
Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
8bcace
---
8bcace
 sos/cleaner/mappings/ip_map.py | 3 +--
8bcace
 1 file changed, 1 insertion(+), 2 deletions(-)
8bcace
8bcace
diff --git a/sos/cleaner/mappings/ip_map.py b/sos/cleaner/mappings/ip_map.py
8bcace
index 45fd9739..e6dffd60 100644
8bcace
--- a/sos/cleaner/mappings/ip_map.py
8bcace
+++ b/sos/cleaner/mappings/ip_map.py
8bcace
@@ -121,13 +121,12 @@ class SoSIPMap(SoSMap):
8bcace
             # network and if it has, replace the default /32 netmask that
8bcace
             # ipaddress applies to no CIDR-notated addresses
8bcace
             self.set_ip_cidr_from_existing_subnet(addr)
8bcace
-            return self.sanitize_ipaddr(addr)
8bcace
         else:
8bcace
             # we have a CIDR notation, so generate an obfuscated network
8bcace
             # address and then generate an IP address within that network's
8bcace
             # range
8bcace
             self.sanitize_network(network)
8bcace
-            return self.sanitize_ipaddr(addr)
8bcace
+        return self.sanitize_ipaddr(addr)
8bcace
 
8bcace
     def sanitize_network(self, network):
8bcace
         """Obfuscate the network address provided, and if there are host bits
8bcace
-- 
8bcace
2.26.2
8bcace