diff --git a/redfish_utilities/systems.py b/redfish_utilities/systems.py index 8f07f7a..4ae6f74 100644 --- a/redfish_utilities/systems.py +++ b/redfish_utilities/systems.py @@ -90,7 +90,11 @@ def set_system_boot( context, system_id = None, ov_target = None, ov_enabled = N payload["Boot"]["BootNext"] = ov_boot_next # Update the system - response = context.patch( system.dict["@odata.id"], body = payload ) + headers = None + etag = system.getheader( "ETag" ) + if etag is not None: + headers = { "If-Match": etag } + response = context.patch( system.dict["@odata.id"], body = payload, headers = headers ) verify_response( response ) return response