-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Open
Labels
featureThis issue/PR relates to a feature requestThis issue/PR relates to a feature requestmodulemodulemodulepluginsplugin (any type)plugin (any type)
Description
Summary
Some BMC's require additional attributes set in the payload for DisableBootOverride
Issue Type
Feature Idea
Component Name
redfish_command
Additional Information
Some BMC's return:
msg: >-
HTTP Error 400 on PATCH request to
'https://BMC_IP/redfish/v1/Systems/<manager_id>', extended message: 'The
property BootSourceOverrideMode is a required property and must be included in
the request.'
when attempting to disable a previously set boot override:
- name: Disable Boot Override
community.general.redfish_command:
category: Systems
command: DisableBootOverride
baseuri: "{{ bmc_ip }}"
username: "{{ bmc_username }}"
password: "{{ bmc_password }}"
boot_override_mode: UEFI
The current code only includes:
if override_enabled == "Disabled":
payload = {"Boot": {"BootSourceOverrideEnabled": override_enabled, "BootSourceOverrideTarget": "None"}}
In the payload. This shouldn't cause harm setting on other BMC implementations if not used.
Code of Conduct
- I agree to follow the Ansible Code of Conduct
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
featureThis issue/PR relates to a feature requestThis issue/PR relates to a feature requestmodulemodulemodulepluginsplugin (any type)plugin (any type)