Skip to content

Commit

Permalink
Api version check for firmware update
Browse files Browse the repository at this point in the history
  • Loading branch information
alisha-k-kalladassery committed Jul 12, 2023
1 parent d932a22 commit 2247c80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/server_hardware_firmware_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
firmware_update_configuration = [{"op": "replace", "value": {"baselineUri": "/rest/firmware-drivers/" + config['server_hardware']['firmware_baseline_id'],
"firmwareInstallType": "FirmwareOnlyOfflineMode", "installationPolicy": "LowerThanBaseline"}
}]
if server:
if server and oneview_client.api_version >=4600:
firmware_compliance = server.check_firmware_compliance(compliance_configuration)
if firmware_compliance['serverFirmwareUpdateRequired']:
print("Updating firmware for the server hardware..")
Expand Down

0 comments on commit 2247c80

Please sign in to comment.