Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3007.x] Fix Salt-SSH loader attribute access, document that it's still not recommended #66606

Merged
merged 9 commits into from
Oct 8, 2024

Conversation

lkubb
Copy link
Contributor

@lkubb lkubb commented May 31, 2024

What does this PR do?

  • Ensures the FunctionWrapper used in Salt-SSH templates behaves more like the regular LazyLoader
  • Adjusts documentation that salt['foo.bar']() is to be preferred over salt.foo.bar() since the latter can introduce edge cases

What issues does this PR fix or reference?

Fixes: #41794
Fixes: #66376
Fixes: #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

@lkubb lkubb requested a review from a team as a code owner May 31, 2024 09:07
@lkubb lkubb requested a review from Akm0d May 31, 2024 09:07
@salt-project-bot-prod-environment salt-project-bot-prod-environment bot changed the title Fix Salt-SSH loader attribute access, document that it's still not recommended [3007.x] Fix Salt-SSH loader attribute access, document that it's still not recommended May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test:full Run the full test suite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants