diff --git a/modules/workflow_firmware.py b/modules/workflow_firmware.py index a628c54..dc1ad6a 100644 --- a/modules/workflow_firmware.py +++ b/modules/workflow_firmware.py @@ -262,14 +262,8 @@ def firmware_update_workflow(): update_iom = choice in ("1", "3") update_fabric = choice in ("2", "3") - iom_fw_path = "" - fabric_fw_path = "" - if update_iom: - iom_fw_path = _prompt_fw_file("IOM firmware file") - - if update_fabric: - fabric_fw_path = _prompt_fw_file("Fabric Card firmware file") + fw_path = _prompt_fw_file("firmware file") print() warn("For HA systems: update the passive IOM first.") @@ -287,9 +281,9 @@ def firmware_update_workflow(): for label, iom, ip, password in targets: rule(f"{label} ({ip})") if update_iom: - _update_iom_fw(password, ip, iom, iom_fw_path) + _update_iom_fw(password, ip, iom, fw_path) if update_fabric: - _update_fabric_fw(password, ip, iom, fabric_fw_path) + _update_fabric_fw(password, ip, iom, fw_path) rule("Post-Update Firmware Validation") _show_fw_versions(targets)