diff --git a/changelogs/fragments/56864-add-macaddress-to-get-nic-inventory.yaml b/changelogs/fragments/56864-add-macaddress-to-get-nic-inventory.yaml new file mode 100644 index 00000000000..cb48a48d0ac --- /dev/null +++ b/changelogs/fragments/56864-add-macaddress-to-get-nic-inventory.yaml @@ -0,0 +1,3 @@ +--- +bugfixes: +- redfish_facts - add MACAddress to properties fetched by Redfish GetNicInventory command diff --git a/lib/ansible/module_utils/redfish_utils.py b/lib/ansible/module_utils/redfish_utils.py index dcd909330df..af71ff10472 100644 --- a/lib/ansible/module_utils/redfish_utils.py +++ b/lib/ansible/module_utils/redfish_utils.py @@ -1365,8 +1365,8 @@ class RedfishUtils(object): key = "EthernetInterfaces" # Get these entries, but does not fail if not found properties = ['Description', 'FQDN', 'IPv4Addresses', 'IPv6Addresses', - 'NameServers', 'PermanentMACAddress', 'SpeedMbps', 'MTUSize', - 'AutoNeg', 'Status'] + 'NameServers', 'MACAddress', 'PermanentMACAddress', + 'SpeedMbps', 'MTUSize', 'AutoNeg', 'Status'] response = self.get_request(self.root_uri + resource_uri) if response['ret'] is False: