This commit is contained in:
Bryce Larson 2019-08-28 20:40:07 -06:00
parent 76de446953
commit 632fcfefcb
No known key found for this signature in database
GPG key ID: 131C38B0F02DB4CA

View file

@ -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