no timestamp
@@ -93,10 +93,8 @@ class Monitor:
if 'mac_addresses' in endpoint.metadata:
for mac in endpoint.metadata['mac_addresses']:
newest = 0
- for timestamp in endpoint.metadata['mac_addresses'][mac]:
- if float(timestamp) > newest:
- newest = float(timestamp)
- role = endpoint.metadata['mac_addresses'][mac][timestamp]['labels'][0]
+ for m in endpoint.metadata['mac_addresses'][mac]:
+ role = endpoint.metadata['mac_addresses'][mac][m]['labels'][0]
if 'ipv4_addresses' in endpoint.metadata:
for ip in endpoint.metadata['ipv4_addresses']:
if ip == endpoint.endpoint_data['ipv4']:
