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:
Chmouel Boudjnah 2011-08-26 15:28:55 -07:00
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)