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

Fix python interpreter for scenario init #4111

Merged
merged 2 commits into from
Jan 25, 2024

Conversation

dobbi84
Copy link
Contributor

@dobbi84 dobbi84 commented Jan 4, 2024

When using Pyenv Virtualenv the ANSIBLE_PYTHON_INTERPRETER passed to run_command is auto_silent and does not resolve to the Python interpreter used by the virtualenv.

Passing instead sys.executable seems solving the issue.

When using Pyenv Virtualenv the ANSIBLE_PYTHON_INTERPRETER
passed to run_command is `auto_silent` and does not resolve
to the Python interpreter used by the virtualenv.

Passing instead `sys.executable` seems solving the issue.
@dobbi84

This comment was marked as outdated.

@ssbarnea ssbarnea changed the title fix python interpreter for scenario init Fix python interpreter for scenario init Jan 25, 2024
@ssbarnea ssbarnea merged commit c13bbc7 into ansible:main Jan 25, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants