From eb73dc464efc9826b5356e2329ebf2cd7035fda1 Mon Sep 17 00:00:00 2001 From: Pierre-yves Fontaniere Date: Fri, 7 Jul 2023 22:24:45 +0200 Subject: [PATCH] Add redfish processor architecture to Redfish CPU inventory (#6864) * Add Processor Architecture to CPU Inventory details * Add changelog fragment * Changelog fragment writing guide formatting Co-authored-by: Felix Fontein --------- Co-authored-by: Pierre-yves FONTANIERE Co-authored-by: Felix Fontein --- ...sh-utils-fix-for-processorarchitecture-in-cpu-inventory.yaml | 2 ++ plugins/module_utils/redfish_utils.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/6864-redfish-utils-fix-for-processorarchitecture-in-cpu-inventory.yaml diff --git a/changelogs/fragments/6864-redfish-utils-fix-for-processorarchitecture-in-cpu-inventory.yaml b/changelogs/fragments/6864-redfish-utils-fix-for-processorarchitecture-in-cpu-inventory.yaml new file mode 100644 index 0000000000..7c19e76361 --- /dev/null +++ b/changelogs/fragments/6864-redfish-utils-fix-for-processorarchitecture-in-cpu-inventory.yaml @@ -0,0 +1,2 @@ +minor_changes: + - redfish_info - adds ``ProcessorArchitecture`` to CPU inventory (https://github.com/ansible-collections/community.general/pull/6864). diff --git a/plugins/module_utils/redfish_utils.py b/plugins/module_utils/redfish_utils.py index c16287091e..a3d199bf7f 100644 --- a/plugins/module_utils/redfish_utils.py +++ b/plugins/module_utils/redfish_utils.py @@ -2287,7 +2287,7 @@ class RedfishUtils(object): key = "Processors" # Get these entries, but does not fail if not found properties = ['Id', 'Name', 'Manufacturer', 'Model', 'MaxSpeedMHz', - 'TotalCores', 'TotalThreads', 'Status'] + 'ProcessorArchitecture', 'TotalCores', 'TotalThreads', 'Status'] # Search for 'key' entry and extract URI from it response = self.get_request(self.root_uri + systems_uri)