[fix] Kill all jobs before checking if we can reach the salt master

This commit is contained in:
William Wernert
2020-11-02 14:25:02 -05:00
parent 37c630d6ab
commit 1c4abcef15

View File

@@ -264,6 +264,7 @@ check_service_status() {
check_salt_master_status() {
echo "Checking if we can talk to the salt master" >> "$setup_log" 2>&1
salt-call saltutil.kill_all_jobs > /dev/null 2>&1
salt-call state.show_top > /dev/null 2>&1
local status=$?
#true if there is an issue talking to salt master