If no ipv4, pass
This commit is contained in:
parent
7fc1031f8e
commit
9edb21f1c4
1 changed files with 2 additions and 1 deletions
1
main.py
1
main.py
|
@ -39,6 +39,7 @@ 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]] = []
|
||||
if 'ipv4' in hmi:
|
||||
host_mac_ip[hmi[key]].append((hmi['hostname'],
|
||||
hmi['extension'],
|
||||
hmi['mac_address'],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue