Fix bug with mgr attributes
This commit is contained in:
parent
fe3d79b5f1
commit
668b5c9939
|
@ -866,7 +866,7 @@ def redfish_init(config, cspec, data):
|
||||||
mgrattribute_detail = session.get(mgrattribute_root)
|
mgrattribute_detail = session.get(mgrattribute_root)
|
||||||
mgrattribute_attributes = list(mgrattribute_detail["Attributes"].keys())
|
mgrattribute_attributes = list(mgrattribute_detail["Attributes"].keys())
|
||||||
for setting, value in cspec_node["bmc"].get("manager_settings", {}).items():
|
for setting, value in cspec_node["bmc"].get("manager_settings", {}).items():
|
||||||
if setting not in bios_attributes:
|
if setting not in mgrattribute_attributes:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
payload = {"Attributes": {setting: value}}
|
payload = {"Attributes": {setting: value}}
|
||||||
|
|
Loading…
Reference in New Issue