Python34 Fixes.

_loaded was initialized after the __getattr__ call tried to pull it via is_loaded(). Also, added
the constructor for future sanity's sake.

Change-Id: Ice7ed104a040f7e7adebae42161ac677a5f1d31b
This commit is contained in:
Michael Krotscheck 2015-02-18 15:55:41 -08:00
parent 232353e21f
commit e2404c3ccd
1 changed files with 2 additions and 1 deletions

View File

@ -453,10 +453,11 @@ class Resource(object):
:param info: dictionary representing resource attributes
:param loaded: prevent lazy-loading if set to True
"""
super(Resource, self).__init__()
self.manager = manager
self._info = info
self._add_details(info)
self._loaded = loaded
self._add_details(info)
def __repr__(self):
reprkeys = sorted(k