mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Merge pull request #4250 from spacedentist/develop
Mirror salt.utils.pydsl.StateDeclaration.__getattr__ as __getitem__
This commit is contained in:
commit
42932f7390
@ -261,6 +261,8 @@ class StateDeclaration(object):
|
||||
self._mods.append(m)
|
||||
return m
|
||||
|
||||
__getitem__ = __getattr__
|
||||
|
||||
def __str__(self):
|
||||
return self._id
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user