2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-01-09 04:56:12 +00:00

Store serial and model number in id attributes on discovery

This commit is contained in:
Jarrod Johnson 2017-08-09 14:31:29 -04:00
parent 5f1f41b975
commit 8d02d7cc7f

View File

@ -704,6 +704,10 @@ def discover_node(cfg, handler, info, nodename, manual):
newnodeattribs = {}
if 'uuid' in info:
newnodeattribs['id.uuid'] = info['uuid']
if 'serialnumber' in info:
newnodeattribs['id.serial'] = info['serialnumber']
if 'model' in info:
newnodeattribs['id.model'] = info['model']
if handler.https_cert:
newnodeattribs['pubkeys.tls_hardwaremanager'] = \
util.get_fingerprint(handler.https_cert)