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