[fix] Print WARNING instead of ERROR if minion is not responding initially

This commit is contained in:
William Wernert
2020-12-02 13:35:57 -05:00
parent 467f9923b0
commit 8fe43d6d56

View File

@@ -284,7 +284,7 @@ check_salt_master_status() {
check_salt_minion_status() { check_salt_minion_status() {
echo "Checking if the salt minion will respond to jobs" >> "$setup_log" 2>&1 echo "Checking if the salt minion will respond to jobs" >> "$setup_log" 2>&1
salt "$MINION_ID" test.ping >> "$setup_log" 2>&1 salt "$MINION_ID" test.ping | sed 's/ERROR/WARNING/' >> "$setup_log" 2>&1
local status=$? local status=$?
if [ $status -gt 0 ]; then if [ $status -gt 0 ]; then
return 1; return 1;