mirror of
https://github.com/xcat2/confluent.git
synced 2025-02-13 01:00:02 +00:00
Add UUID to TSM discovery
The UUID is now available in redfish, use that to get the UUID.
This commit is contained in:
parent
cec6918c1a
commit
5ae949b4eb
@ -44,6 +44,13 @@ class NodeHandler(generic.NodeHandler):
|
||||
self.atdefault = True
|
||||
super(NodeHandler, self).__init__(info, configmanager)
|
||||
|
||||
def scan(self):
|
||||
c = webclient.SecureHTTPConnection(self.ipaddr, 443, verifycallback=self.validate_cert)
|
||||
i = c.grab_json_response('/redfish/v1/')
|
||||
uuid = i.get('UUID', None)
|
||||
if uuid:
|
||||
self.info['uuid'] = uuid
|
||||
|
||||
def validate_cert(self, certificate):
|
||||
# broadly speaking, merely checks consistency moment to moment,
|
||||
# but if https_cert gets stricter, this check means something
|
||||
|
Loading…
x
Reference in New Issue
Block a user