Add debug line and remove exit command on retry failure

This commit is contained in:
William Wernert
2021-05-10 10:58:29 -04:00
parent de5552c91a
commit 8b3730748b

View File

@@ -662,6 +662,7 @@ upgrade_check() {
is_hotfix=true is_hotfix=true
fi fi
else else
echo "DEBUG: here"
is_hotfix=false is_hotfix=false
fi fi
@@ -889,7 +890,7 @@ else
systemctl start salt-master systemctl start salt-master
# Testing that that salt-master is up by checking that is it connected to itself # Testing that that salt-master is up by checking that is it connected to itself
retry 50 10 "salt-call state.show_top -l error" || exit 1 retry 50 10 "salt-call state.show_top -l error"
echo "" echo ""
echo "Ensuring python modules for Salt are installed and patched." echo "Ensuring python modules for Salt are installed and patched."
@@ -923,7 +924,7 @@ else
systemctl start salt-master systemctl start salt-master
# Testing that that salt-master is up by checking that is it connected to itself # Testing that that salt-master is up by checking that is it connected to itself
retry 50 10 "salt-call state.show_top -l error" || exit 1 retry 50 10 "salt-call state.show_top -l error"
echo "Running a highstate. This could take several minutes." echo "Running a highstate. This could take several minutes."
salt-call state.highstate -l info queue=True salt-call state.highstate -l info queue=True