Skip to content

Add python.run and python.script execution and state modules#69837

Open
twangboy wants to merge 1 commit into
saltstack:masterfrom
twangboy:add/69836/master
Open

Add python.run and python.script execution and state modules#69837
twangboy wants to merge 1 commit into
saltstack:masterfrom
twangboy:add/69836/master

Conversation

@twangboy

Copy link
Copy Markdown
Contributor

What does this PR do?

Add a new python execution module (python.run, python.script) and paired python state module that run Python code and scripts using the same interpreter that is running the Salt minion/master, rather than whatever python/python3 resolves to on PATH. This makes it possible to reliably target Salt's own bundled/onedir interpreter regardless of what's installed on the system.

What issues does this PR fix or reference?

Fixes #69836

Merge requirements satisfied?

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

Commits signed with GPG?

Yes

@twangboy twangboy added this to the Potassium v3009.0 milestone Jul 20, 2026
@twangboy twangboy self-assigned this Jul 20, 2026
@twangboy
twangboy requested a review from a team as a code owner July 20, 2026 18:57
@twangboy twangboy added the test:full Run the full test suite label Jul 20, 2026
Add a new `python` execution module (`python.run`, `python.script`) and
paired `python` state module that run Python code and scripts using the
same interpreter that is running the Salt minion/master, rather than
whatever `python`/`python3` resolves to on PATH. This makes it possible
to reliably target Salt's own bundled/onedir interpreter regardless of
what's installed on the system.

Fixes: saltstack#69836
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.

[Bug]: Add python.run and python.script execution and state modules

1 participant