mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Rename key
This commit is contained in:
parent
5b6f2995eb
commit
1f703ef548
@ -104,8 +104,8 @@ class LazyDict(collections.MutableMapping):
|
||||
log.debug('LazyLoaded {0}'.format(name))
|
||||
return self._dict[name]
|
||||
else:
|
||||
log.debug('Could not LazyLoad {0}'.format(key))
|
||||
raise KeyError(key)
|
||||
log.debug('Could not LazyLoad {0}'.format(name))
|
||||
raise KeyError(name)
|
||||
elif name in self:
|
||||
return self[name]
|
||||
raise AttributeError(name)
|
||||
|
Loading…
Reference in New Issue
Block a user