From 5fcb98cd3f946a71d6feb93937c02fb9b0db7d9a Mon Sep 17 00:00:00 2001 From: smiller248 <136365984+smiller248@users.noreply.github.com> Date: Fri, 25 Aug 2023 14:50:28 -0400 Subject: [PATCH] redfish_info: Report Id in GetManagerInventory output (#7140) --- changelogs/fragments/7140-id-getmanagerinv-output.yml | 2 ++ plugins/module_utils/redfish_utils.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/7140-id-getmanagerinv-output.yml diff --git a/changelogs/fragments/7140-id-getmanagerinv-output.yml b/changelogs/fragments/7140-id-getmanagerinv-output.yml new file mode 100644 index 00000000000..e3cb1b52533 --- /dev/null +++ b/changelogs/fragments/7140-id-getmanagerinv-output.yml @@ -0,0 +1,2 @@ +minor_changes: + - redfish_info - report ``Id`` in the output of ``GetManagerInventory`` (https://github.com/ansible-collections/community.general/pull/7140). diff --git a/plugins/module_utils/redfish_utils.py b/plugins/module_utils/redfish_utils.py index 446d3daf7e7..6557dac5bda 100644 --- a/plugins/module_utils/redfish_utils.py +++ b/plugins/module_utils/redfish_utils.py @@ -3349,7 +3349,7 @@ def get_manager_inventory(self, manager_uri): result = {} inventory = {} # Get these entries, but does not fail if not found - properties = ['FirmwareVersion', 'ManagerType', 'Manufacturer', 'Model', + properties = ['Id', 'FirmwareVersion', 'ManagerType', 'Manufacturer', 'Model', 'PartNumber', 'PowerState', 'SerialNumber', 'Status', 'UUID'] response = self.get_request(self.root_uri + manager_uri)