use isinstance instead of type comparison
This commit is contained in:
parent
c8358a013d
commit
f065db742d
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue