mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #36496 from cachedout/namespace_repr
Add repr to namespacedict
This commit is contained in:
commit
464c4305f9
1 changed files with 3 additions and 0 deletions
|
@ -177,6 +177,9 @@ class NamespacedDictWrapper(collections.MutableMapping, dict):
|
|||
r = r[k]
|
||||
return r
|
||||
|
||||
def __repr__(self):
|
||||
return repr(self._dict())
|
||||
|
||||
def __setitem__(self, key, val):
|
||||
self._dict()[key] = val
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue