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:
parent
e07e6ed152
commit
8c13816331
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user