Merge pull request #62 from uggla/fixmoonshot
Fix for Moonshot platform
This commit is contained in:
commit
9a7e7a3905
@ -63,6 +63,7 @@ class Base(object):
|
|||||||
links = getattr(self.data, mapping.redfish_mapper.map_links())
|
links = getattr(self.data, mapping.redfish_mapper.map_links())
|
||||||
if link_type in links:
|
if link_type in links:
|
||||||
return urljoin(self.url, links[link_type][mapping.redfish_mapper.map_links_ref()])
|
return urljoin(self.url, links[link_type][mapping.redfish_mapper.map_links_ref()])
|
||||||
|
raise AttributeError
|
||||||
else:
|
else:
|
||||||
links = getattr(self.data, link_type)
|
links = getattr(self.data, link_type)
|
||||||
link = getattr(links, mapping.redfish_mapper.map_links_ref())
|
link = getattr(links, mapping.redfish_mapper.map_links_ref())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user