Open lkubb opened 1 month ago
FunctionWrapper
salt['foo.bar']()
salt.foo.bar()
Fixes: https://github.com/saltstack/salt/issues/41794 Fixes: https://github.com/saltstack/salt/issues/66376 Fixes: https://github.com/saltstack/salt/issues/66600
Several issues when using the salt.foo.bar syntax (see linked issues)
salt.foo.bar
Works as expected. There might be some unknown edge cases though, so still prefer salt['foo.bar'].
salt['foo.bar']
Yes
What does this PR do?
FunctionWrapper
used in Salt-SSH templates behaves more like the regular LazyLoadersalt['foo.bar']()
is to be preferred oversalt.foo.bar()
since the latter can introduce edge casesWhat issues does this PR fix or reference?
Fixes: https://github.com/saltstack/salt/issues/41794 Fixes: https://github.com/saltstack/salt/issues/66376 Fixes: https://github.com/saltstack/salt/issues/66600
Previous Behavior
Several issues when using the
salt.foo.bar
syntax (see linked issues)New Behavior
Works as expected. There might be some unknown edge cases though, so still prefer
salt['foo.bar']
.Merge requirements satisfied?
Commits signed with GPG?
Yes