diff --git a/changelogs/fragments/68251-redfish_config-fix-boolean-bios-attr-support.yaml b/changelogs/fragments/68251-redfish_config-fix-boolean-bios-attr-support.yaml new file mode 100644 index 00000000000..20ba44073a8 --- /dev/null +++ b/changelogs/fragments/68251-redfish_config-fix-boolean-bios-attr-support.yaml @@ -0,0 +1,3 @@ +--- +bugfixes: +- redfish_config - fix support for boolean bios attrs (https://github.com/ansible/ansible/pull/68251) diff --git a/lib/ansible/modules/remote_management/redfish/redfish_config.py b/lib/ansible/modules/remote_management/redfish/redfish_config.py index 44c09ca38fd..f00882ae332 100644 --- a/lib/ansible/modules/remote_management/redfish/redfish_config.py +++ b/lib/ansible/modules/remote_management/redfish/redfish_config.py @@ -60,7 +60,7 @@ options: description: - value of BIOS attribute to update default: 'null' - type: str + type: raw version_added: "2.8" timeout: description: @@ -142,7 +142,7 @@ def main(): username=dict(required=True), password=dict(required=True, no_log=True), bios_attribute_name=dict(default='null'), - bios_attribute_value=dict(default='null'), + bios_attribute_value=dict(default='null', type='raw'), timeout=dict(type='int', default=10) ), supports_check_mode=False