2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-26 11:30:23 +00:00

Add UUID to returned discovery data when available

This commit is contained in:
Jarrod Johnson 2017-08-23 12:57:34 -04:00
parent e5c330bb1c
commit 299c5c4e71

View File

@ -148,6 +148,7 @@ def send_discovery_datum(info):
yield msg.KeyValueData({'ipaddrs': [x[0] for x in addresses]})
yield msg.KeyValueData({'serialnumber': info.get('serialnumber', '')})
yield msg.KeyValueData({'modelnumber': info.get('modelnumber', '')})
yield msg.KeyValueData({'uuid': info.get('uuid, ''')})
if 'enclosure.bay' in info:
yield msg.KeyValueData({'bay': int(info['enclosure.bay'])})
yield msg.KeyValueData({'macs': [info.get('hwaddr', '')]})