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

Redfish Bootoverride Disable behaves incorrectly (#3006)

* https://github.com/ansible-collections/community.general/issues/3005

Bypass the boot device argument check when the command is: DisableBootOverride
as it isn't needed to perform this operation.

* Add changelog fragment
This commit is contained in:
Scott Seekamp 2021-07-16 11:02:34 -06:00 committed by GitHub
parent a3a40f6de3
commit ea822c7bdd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 7 deletions

View file

@ -0,0 +1,3 @@
bugfixes:
- redfish_command - fix extraneous error caused by missing ``bootdevice`` argument
when using the ``DisableBootOverride`` sub-command (https://github.com/ansible-collections/community.general/issues/3005).

View file

@ -1582,6 +1582,7 @@ class RedfishUtils(object):
boot = data[key] boot = data[key]
if override_enabled != 'Disabled':
annotation = 'BootSourceOverrideTarget@Redfish.AllowableValues' annotation = 'BootSourceOverrideTarget@Redfish.AllowableValues'
if annotation in boot: if annotation in boot:
allowable_values = boot[annotation] allowable_values = boot[annotation]