mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 05:10:22 -07:00
Add GetChassisThermals command to Chassis category of redfish_facts (#54399)
* Add GetChassisThermals command to Chassis list * Add GetChassisThermals conditional and point to rf_utils.get_chassis_thermals() function * Implement get_chassis_thermals() in redfish_utils * Remove trailing whitespace * Add more properties, including RelatedItem tto distinguish entries' contexts from each other. * Remove trailing whitespace
This commit is contained in:
parent
216d8b5254
commit
1aec39a2d7
2 changed files with 45 additions and 1 deletions
|
@ -162,7 +162,7 @@ CATEGORY_COMMANDS_ALL = {
|
|||
"GetMemoryInventory", "GetNicInventory",
|
||||
"GetStorageControllerInventory", "GetDiskInventory",
|
||||
"GetBiosAttributes", "GetBootOrder"],
|
||||
"Chassis": ["GetFanInventory", "GetPsuInventory"],
|
||||
"Chassis": ["GetFanInventory", "GetPsuInventory", "GetChassisThermals"],
|
||||
"Accounts": ["ListUsers"],
|
||||
"Update": ["GetFirmwareInventory"],
|
||||
"Manager": ["GetManagerNicInventory", "GetLogs"],
|
||||
|
@ -271,6 +271,8 @@ def main():
|
|||
result["fan"] = rf_utils.get_fan_inventory()
|
||||
elif command == "GetPsuInventory":
|
||||
result["psu"] = rf_utils.get_psu_inventory()
|
||||
elif command == "GetChassisThermals":
|
||||
result["thermals"] = rf_utils.get_chassis_thermals()
|
||||
|
||||
elif category == "Accounts":
|
||||
# execute only if we find an Account service resource
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue