From 299c5c4e7164f281c0c5cd89340d543f0e59c724 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 23 Aug 2017 12:57:34 -0400 Subject: [PATCH] Add UUID to returned discovery data when available --- confluent_server/confluent/discovery/core.py | 1 + 1 file changed, 1 insertion(+) diff --git a/confluent_server/confluent/discovery/core.py b/confluent_server/confluent/discovery/core.py index caee6f9e..8e0f174d 100644 --- a/confluent_server/confluent/discovery/core.py +++ b/confluent_server/confluent/discovery/core.py @@ -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', '')]})