use isinstance instead of type comparison

This commit is contained in:
Robert Kaussow 2023-08-24 22:19:52 +02:00
parent c8358a013d
commit f065db742d
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ class Discovery:
except Exception: # noqa
pass
if type(networks) is list:
if isinstance(networks, list):
for network in networks:
for ip_address in network.get("ip-addresses", []):
if ip_address["ip-address-type"] == "ipv4" and not ipv4_address: