From 0480f72fdad8f75ff845beb4678b878817c44ed3 Mon Sep 17 00:00:00 2001 From: Uggla Date: Tue, 5 Apr 2016 19:20:11 +0200 Subject: [PATCH] Fix for Moonshot platform - Fix to not crash although Moonshot Redfish is 0.95 even with firmware 1.41 --- redfish/types.py | 1 + 1 file changed, 1 insertion(+) diff --git a/redfish/types.py b/redfish/types.py index 478ab53..db73eb2 100644 --- a/redfish/types.py +++ b/redfish/types.py @@ -66,6 +66,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())