From 6891a95254b62c1a5093e6b0d465d91975d6bba0 Mon Sep 17 00:00:00 2001 From: m0duspwnens Date: Thu, 26 Oct 2023 13:02:39 -0400 Subject: [PATCH] remove wait_for_salt_minion from so-functions --- setup/so-functions | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/setup/so-functions b/setup/so-functions index fd5bc790f..42402ad86 100755 --- a/setup/so-functions +++ b/setup/so-functions @@ -2494,20 +2494,6 @@ wait_for_file() { return 1 } -wait_for_salt_minion() { - retry 60 5 "journalctl -u salt-minion.service | grep 'Minion is ready to receive requests'" >> "$setup_log" 2>&1 || fail_setup - local attempt=0 - # each attempts would take about 15 seconds - local maxAttempts=20 - until check_salt_minion_status; do - attempt=$((attempt+1)) - if [[ $attempt -eq $maxAttempts ]]; then - fail_setup - fi - sleep 10 - done -} - verify_setup() { info "Verifying setup" set -o pipefail