2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-02-16 18:49:04 +00:00

Fix fetch of model name for XCC3 systems

This commit is contained in:
Jarrod Johnson 2024-08-05 15:03:00 -04:00
parent e07e6ed152
commit 8c13816331

View File

@ -33,6 +33,7 @@ class NodeHandler(redfishbmc.NodeHandler):
ip, port = self.get_web_port_and_ip()
c = webclient.SecureHTTPConnection(ip, port,
verifycallback=self.validate_cert)
c.set_header('Accept', 'application/json')
i = c.grab_json_response('/api/providers/logoninfo')
modelname = i.get('items', [{}])[0].get('machine_name', None)
if modelname: