mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 05:10:22 -07:00
Update GetBiosBootOrder to use standard spec resources (#51764)
* update GetBiosBootOrder to use standard spec resources * handle case where BootOrder is present but BootOptions is missing
This commit is contained in:
parent
e81b74d6c8
commit
e0538610bf
2 changed files with 57 additions and 36 deletions
|
@ -131,7 +131,7 @@ from ansible.module_utils.redfish_utils import RedfishUtils
|
|||
CATEGORY_COMMANDS_ALL = {
|
||||
"Systems": ["GetSystemInventory", "GetPsuInventory", "GetCpuInventory",
|
||||
"GetNicInventory", "GetStorageControllerInventory",
|
||||
"GetDiskInventory", "GetBiosAttributes", "GetBiosBootOrder"],
|
||||
"GetDiskInventory", "GetBiosAttributes", "GetBootOrder"],
|
||||
"Chassis": ["GetFanInventory"],
|
||||
"Accounts": ["ListUsers"],
|
||||
"Update": ["GetFirmwareInventory"],
|
||||
|
@ -223,8 +223,8 @@ def main():
|
|||
result["disk"] = rf_utils.get_disk_inventory()
|
||||
elif command == "GetBiosAttributes":
|
||||
result["bios_attribute"] = rf_utils.get_bios_attributes()
|
||||
elif command == "GetBiosBootOrder":
|
||||
result["bios_boot_order"] = rf_utils.get_bios_boot_order()
|
||||
elif command == "GetBootOrder":
|
||||
result["boot_order"] = rf_utils.get_boot_order()
|
||||
|
||||
elif category == "Chassis":
|
||||
# execute only if we find Chassis resource
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue