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:
parent
e5c330bb1c
commit
299c5c4e71
@ -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', '')]})
|
||||
|
Loading…
Reference in New Issue
Block a user