Fix #53, handle MacAddress and MACAddress keys
- Proliant firmware uses MacAddress but the standard is MACAddress.
This commit is contained in:
@@ -702,9 +702,13 @@ class EthernetInterfaces(Base):
|
||||
|
||||
'''
|
||||
try:
|
||||
# Proliant firmware seems to not follow redfish systax
|
||||
return self.data.MacAddress
|
||||
except AttributeError:
|
||||
return "Not available"
|
||||
try:
|
||||
return self.data.MACAddress
|
||||
except AttributeError:
|
||||
return "Not available"
|
||||
|
||||
def get_fqdn(self):
|
||||
'''Get EthernetInterface fqdn
|
||||
|
||||
Reference in New Issue
Block a user