mirror of
https://github.com/saltstack/salt-bootstrap.git
synced 2025-04-16 09:40:21 +00:00
fix issue #1358
This commit is contained in:
parent
76de446953
commit
632fcfefcb
1 changed files with 3 additions and 1 deletions
|
@ -2276,8 +2276,10 @@ __overwriteconfig() {
|
|||
tempfile="/tmp/salt-config-$$"
|
||||
fi
|
||||
|
||||
if [ -n "$_PY_EXE" ]; then
|
||||
good_python="$_PY_EXE"
|
||||
# If python does not have yaml installed we're on Arch and should use python2
|
||||
if python -c "import yaml" 2> /dev/null; then
|
||||
elif python -c "import yaml" 2> /dev/null; then
|
||||
good_python=python
|
||||
else
|
||||
good_python=python2
|
||||
|
|
Loading…
Add table
Reference in a new issue