Fix fabric firmware version path — add VikingEnterpriseSolutions key
The Redfish response nests the version under Oem.VikingEnterpriseSolutions.Version.ActiveFirmwareVersion, not Oem.Version.ActiveFirmwareVersion. Fixed in both redfish.py (_get_fabric_fw_version, used by network check and firmware workflow) and workflow_check.py (serial inline parsing). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -208,6 +208,7 @@ def _get_fabric_fw_version(password: str, host: str, iom: str) -> str:
|
||||
)
|
||||
if ok_flag and isinstance(data, dict):
|
||||
version = (data.get("Oem", {})
|
||||
.get("VikingEnterpriseSolutions", {})
|
||||
.get("Version", {})
|
||||
.get("ActiveFirmwareVersion"))
|
||||
return version or "Unknown"
|
||||
|
||||
@@ -151,6 +151,7 @@ def _check_via_serial():
|
||||
)
|
||||
fab_ver = (
|
||||
(fab_data.get("Oem", {})
|
||||
.get("VikingEnterpriseSolutions", {})
|
||||
.get("Version", {})
|
||||
.get("ActiveFirmwareVersion", "Unknown"))
|
||||
if (fab_ok and isinstance(fab_data, dict))
|
||||
|
||||
Reference in New Issue
Block a user