1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

redfish_config: fix support for boolean BIOS attributes (#189)

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
This commit is contained in:
Jacob 2020-04-16 02:56:24 -04:00 committed by GitHub
parent d54581dddc
commit 15e961c2ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View file

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

View file

@ -57,7 +57,7 @@ options:
description:
- value of BIOS attr to update (deprecated - use bios_attributes instead)
default: 'null'
type: str
type: raw
bios_attributes:
required: false
description:
@ -230,7 +230,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'),
bios_attributes=dict(type='dict', default={}),
timeout=dict(type='int', default=10),
boot_order=dict(type='list', elements='str', default=[]),