remove redirect

This commit is contained in:
m0duspwnens
2023-10-18 18:45:14 -04:00
parent 9eb682bc40
commit ff18b1f074

View File

@@ -154,13 +154,13 @@ check_salt_master_status() {
check_salt_minion_status() { check_salt_minion_status() {
local timeout="${1:-5}" local timeout="${1:-5}"
echo "Checking if the salt minion will respond to jobs" >> "$setup_log" 2>&1 echo "Checking if the salt minion will respond to jobs"
salt "$MINION_ID" test.ping -t $timeout > /dev/null 2>&1 salt "$MINION_ID" test.ping -t $timeout > /dev/null 2>&1
local status=$? local status=$?
if [ $status -gt 0 ]; then if [ $status -gt 0 ]; then
echo " Minion did not respond" >> "$setup_log" 2>&1 echo " Minion did not respond"
else else
echo " Received job response from salt minion" >> "$setup_log" 2>&1 echo " Received job response from salt minion"
fi fi
return $status return $status