From c7fccb2c0168ed6d95de9cafe831e2b5bd4b0c9b Mon Sep 17 00:00:00 2001 From: Jacob Date: Thu, 19 Aug 2021 15:13:10 -0400 Subject: [PATCH] redfish_info: Include Status property for GetChassisThermals (#3233) * redfish_info: Include Status property for GetChassisThermals Include Status property for Thermal objects when querying Thermal properties via GetChassisThermals command. FIXES #3232 * fixup for rename of fragments file * Update changelogs/fragments/3233-include-thermal-sensor-status-via-redfish_info.yaml Co-authored-by: Ajpantuso Co-authored-by: Ajpantuso --- .../3233-include-thermal-sensor-status-via-redfish_info.yaml | 2 ++ plugins/module_utils/redfish_utils.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/3233-include-thermal-sensor-status-via-redfish_info.yaml diff --git a/changelogs/fragments/3233-include-thermal-sensor-status-via-redfish_info.yaml b/changelogs/fragments/3233-include-thermal-sensor-status-via-redfish_info.yaml new file mode 100644 index 0000000000..baed989fbf --- /dev/null +++ b/changelogs/fragments/3233-include-thermal-sensor-status-via-redfish_info.yaml @@ -0,0 +1,2 @@ +minor_changes: + - redfish_info - include ``Status`` property for Thermal objects when querying Thermal properties via ``GetChassisThermals`` command (https://github.com/ansible-collections/community.general/issues/3232). diff --git a/plugins/module_utils/redfish_utils.py b/plugins/module_utils/redfish_utils.py index c861820edf..0f8e6630ba 100644 --- a/plugins/module_utils/redfish_utils.py +++ b/plugins/module_utils/redfish_utils.py @@ -1887,7 +1887,7 @@ class RedfishUtils(object): 'LowerThresholdCritical', 'LowerThresholdFatal', 'LowerThresholdNonCritical', 'MaxReadingRangeTemp', 'MinReadingRangeTemp', 'ReadingCelsius', 'RelatedItem', - 'SensorNumber'] + 'SensorNumber', 'Status'] # Go through list for chassis_uri in self.chassis_uris: