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

Pass context to pillar ext #62898

Merged

Conversation

vzhestkov
Copy link
Contributor

What does this PR do?

This change makes it possible to pass the context to pillar ext modules and let them store the values in the context.

Previous Behavior

The __context__ passed to the pillar ext modules was always empty.

New Behavior

It's possibe to store the values to the __context__ and reuse them.

Merge requirements satisfied?

[NOTICE] Bug fixes or features added to Salt require tests.

Commits signed with GPG?

Yes/No

Please review Salt's Contributing Guide for best practices.

See GitHub's page on GPG signing for more information about signing commits with GPG.

@vzhestkov vzhestkov requested a review from a team as a code owner October 17, 2022 06:26
@vzhestkov vzhestkov requested review from garethgreenaway and removed request for a team October 17, 2022 06:26
@vzhestkov vzhestkov force-pushed the pass-context-to-pillar-ext branch from 1789124 to b298c2a Compare October 17, 2022 06:33
@vzhestkov vzhestkov force-pushed the pass-context-to-pillar-ext branch from b298c2a to ea9690b Compare October 17, 2022 07:07
@garethgreenaway garethgreenaway merged commit cc17dfe into saltstack:master Oct 17, 2022
agraul pushed a commit to agraul/salt that referenced this pull request Jan 27, 2025
* Pass __context__ to ext pillar

* Add test for passing the context to pillar ext module

* Align the test and pillar to prevent failing test

BACKPORT-UPSTREAM=saltstack#62898
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants