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:
parent
232353e21f
commit
e2404c3ccd
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user