Merge pull request #62 from uggla/fixmoonshot

Fix for Moonshot platform
This commit is contained in:
Bruno Cornec 2016-04-06 01:45:50 +02:00
commit 9a7e7a3905

View File

@ -63,6 +63,7 @@ class Base(object):
links = getattr(self.data, mapping.redfish_mapper.map_links())
if link_type in links:
return urljoin(self.url, links[link_type][mapping.redfish_mapper.map_links_ref()])
raise AttributeError
else:
links = getattr(self.data, link_type)
link = getattr(links, mapping.redfish_mapper.map_links_ref())