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:
parent
a3a40f6de3
commit
ea822c7bdd
2 changed files with 11 additions and 7 deletions
|
@ -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).
|
|
@ -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]
|
||||||
|
|
Loading…
Reference in a new issue