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:
parent
5f1f41b975
commit
8d02d7cc7f
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user