Make test ping retry

This commit is contained in:
Mike Reeves
2022-09-15 17:01:53 -04:00
parent e6c0c2ce19
commit c50a1608af
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -209,10 +209,12 @@ function createIDHNODE() {
}
function testConnection() {
salt "$MINION_ID" test.ping
retry 5 10 "salt '$MINION_ID' test.ping" 0
local ret=$?
if [[ $ret != 0 ]]; then
echo "The Minion has been accepted but is not online. Try again later"
echo "Deleting the key"
deleteminion
exit 1
fi
}