virtualenv.managed ran twice over the same directory breaks it #38681
Labels
cannot-reproduce
cannot be replicated with info/context provided
info-needed
waiting for more info
stale
Milestone
Description of Issue/Question
virtualenv.managed
configured to create Python3 venv on first run does the right thing, but when run for second time on the same minion with already existing venv breaks it and resets to Python2.Workaround - explicitly delete venv environment folder before (re)creating the venv.
Setup
Steps to Reproduce Issue
salt '<minion_name>' state.apply
on master.cd /opt/projects/project && . venv/bin/activate && which python && python --version
salt '<minion_name>' state.apply
on master again.cd /opt/projects/project && . venv/bin/activate && which python && python --version
Versions Report
The text was updated successfully, but these errors were encountered: