From aaf42f3646f5e946deb932ec5bc38512b3559280 Mon Sep 17 00:00:00 2001 From: "patchback[bot]" <45432694+patchback[bot]@users.noreply.github.com> Date: Mon, 14 Dec 2020 07:57:07 +0100 Subject: [PATCH] Fix property name typo in get_memory_inventory() (#1484) (#1486) Co-authored-by: Felix Fontein (cherry picked from commit 51dfc1f288e8529fa70bf96f78cc8fc8ba5a1b1d) Co-authored-by: Bill Dodd --- .../1484-fix-property-name-in-redfish-memory-inventory.yml | 2 ++ plugins/module_utils/redfish_utils.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/1484-fix-property-name-in-redfish-memory-inventory.yml diff --git a/changelogs/fragments/1484-fix-property-name-in-redfish-memory-inventory.yml b/changelogs/fragments/1484-fix-property-name-in-redfish-memory-inventory.yml new file mode 100644 index 0000000000..445cae58c0 --- /dev/null +++ b/changelogs/fragments/1484-fix-property-name-in-redfish-memory-inventory.yml @@ -0,0 +1,2 @@ +bugfixes: + - redfish_info module, redfish_utils module utils - correct ``PartNumber`` property name in Redfish ``GetMemoryInventory`` command (https://github.com/ansible-collections/community.general/issues/1483). diff --git a/plugins/module_utils/redfish_utils.py b/plugins/module_utils/redfish_utils.py index 4c648de39f..79ef7213b9 100644 --- a/plugins/module_utils/redfish_utils.py +++ b/plugins/module_utils/redfish_utils.py @@ -1886,7 +1886,7 @@ class RedfishUtils(object): memory_results = [] key = "Memory" # Get these entries, but does not fail if not found - properties = ['SerialNumber', 'MemoryDeviceType', 'PartNuber', + properties = ['SerialNumber', 'MemoryDeviceType', 'PartNumber', 'MemoryLocation', 'RankCount', 'CapacityMiB', 'OperatingMemoryModes', 'Status', 'Manufacturer', 'Name'] # Search for 'key' entry and extract URI from it