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:
|
try:
|
||||||
|
# Proliant firmware seems to not follow redfish systax
|
||||||
return self.data.MacAddress
|
return self.data.MacAddress
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
return "Not available"
|
try:
|
||||||
|
return self.data.MACAddress
|
||||||
|
except AttributeError:
|
||||||
|
return "Not available"
|
||||||
|
|
||||||
def get_fqdn(self):
|
def get_fqdn(self):
|
||||||
'''Get EthernetInterface fqdn
|
'''Get EthernetInterface fqdn
|
||||||
|
|||||||
Reference in New Issue
Block a user