Skip to content

Pass context to pillar ext - #62898

Merged
garethgreenaway merged 3 commits into
saltstack:masterfrom
vzhestkov:pass-context-to-pillar-ext
Oct 17, 2022
Merged

garethgreenaway merged 3 commits into
saltstack:masterfrom
vzhestkov:pass-context-to-pillar-ext

Conversation

@vzhestkov

Copy link
Copy Markdown
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