From b440f733366c6eb946f4a7852207ad59a70ae283 Mon Sep 17 00:00:00 2001 From: Jason Ertel Date: Wed, 19 May 2021 18:37:08 -0400 Subject: [PATCH] Truncate wait_for_web_response.log before each wait invocation --- salt/common/tools/sbin/so-common | 1 + 1 file changed, 1 insertion(+) diff --git a/salt/common/tools/sbin/so-common b/salt/common/tools/sbin/so-common index 22c7543ea..56123f418 100755 --- a/salt/common/tools/sbin/so-common +++ b/salt/common/tools/sbin/so-common @@ -487,6 +487,7 @@ wait_for_web_response() { expected=$2 maxAttempts=${3:-300} logfile=/root/wait_for_web_response.log + truncate -s 0 "$logfile" attempt=0 while [[ $attempt -lt $maxAttempts ]]; do attempt=$((attempt+1))