Commit 9edb21f1 authored by Gabriel Detraz's avatar Gabriel Detraz Committed by root
Browse files

If no ipv4, pass

parent 7fc1031f
......@@ -39,7 +39,8 @@ def build_hmi(host_mac_ip, api_res, key):
for hmi in api_res:
if hmi[key] not in host_mac_ip.keys():
host_mac_ip[hmi[key]] = []
host_mac_ip[hmi[key]].append((hmi['hostname'],
if 'ipv4' in hmi:
host_mac_ip[hmi[key]].append((hmi['hostname'],
hmi['extension'],
hmi['mac_address'],
hmi['ipv4']))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment