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

[3006.x] Allow NamedLoaderContexts to be returned from loaded functions #66649

Merged
merged 2 commits into from
Jun 20, 2024

Conversation

dwoz
Copy link
Contributor

@dwoz dwoz commented Jun 19, 2024

It is useful in some cases to return NamedLoaderContexts from loaded functions. Instead of choking or requiring implementers to call the context's value() method before being de-scoped, detect when a NamedLoaderContext has been returned and return the value from the current context.

What issues does this PR fix or reference?

Fixes: #65251

Merge requirements satisfied?

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

dwoz added 2 commits June 18, 2024 23:39
It is useful in some cases to return NamedLoaderContexts from loaded
functions. Instead of choking or requireing implimenters to call the
context's value() method before being de-scoped, detect when a
NamedLoaderContext has been returned and return the value from the
current context.
@dwoz dwoz requested a review from a team as a code owner June 19, 2024 06:45
@salt-project-bot-prod-environment salt-project-bot-prod-environment bot changed the title Allow NamedLoaderContexts to be returned from loaded functions [3006.x] Allow NamedLoaderContexts to be returned from loaded functions Jun 19, 2024
@dwoz dwoz added the test:full Run the full test suite label Jun 19, 2024
@dwoz dwoz merged commit 2f84693 into saltstack:3006.x Jun 20, 2024
285 of 368 checks passed
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.

None yet

3 participants