redfish_config: fix support for boolean BIOS attributes

Backport of ansible-collections/community.general#189 to stable-2.9

Currently the redfish_config module will convert boolean bios_attribute_value
settings to strings (type str). This will cause BMCs expecting booleans to
error out.

This PR will change the default type of bios_attribute_value to 'raw' in order
to support strings and booleans.

Fixes #68251
pull/69271/head
Jacob Yundt 6 years ago committed by Matt Clay
parent 604f797f0e
commit e5d93a4f11

@ -0,0 +1,3 @@
---
bugfixes:
- redfish_config - fix support for boolean bios attrs (https://github.com/ansible/ansible/pull/68251)

@ -60,7 +60,7 @@ options:
description: description:
- value of BIOS attribute to update - value of BIOS attribute to update
default: 'null' default: 'null'
type: str type: raw
version_added: "2.8" version_added: "2.8"
timeout: timeout:
description: description:
@ -142,7 +142,7 @@ def main():
username=dict(required=True), username=dict(required=True),
password=dict(required=True, no_log=True), password=dict(required=True, no_log=True),
bios_attribute_name=dict(default='null'), 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) timeout=dict(type='int', default=10)
), ),
supports_check_mode=False supports_check_mode=False

Loading…
Cancel
Save