Make sure we can do a get on the base class.
or this will loop forever and sometime (like keypairs) there is classes that don't have a get method.
This commit is contained in:
parent
5969022401
commit
713133ed8e
@ -223,6 +223,8 @@ class Resource(object):
|
||||
return "<%s %s>" % (self.__class__.__name__, info)
|
||||
|
||||
def get(self):
|
||||
if not hasattr(self.manager, 'get'):
|
||||
return
|
||||
new = self.manager.get(self.id)
|
||||
if new:
|
||||
self._add_details(new._info)
|
||||
|
Loading…
x
Reference in New Issue
Block a user