Disable immediate exit during retries of Gitea API operations 75/14575/1
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Thu, 19 Sep 2024 10:41:19 +0000 (12:41 +0200)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Thu, 19 Sep 2024 10:42:26 +0000 (12:42 +0200)
Change-Id: I05afbe1dce9ac68756099922bfe1abb7e622ea93
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
installers/mgmt-cluster/gitea/admin/api.sh

index 2c635cc..50b46e6 100755 (executable)
@@ -51,8 +51,12 @@ function gitea_api_operation() {
     fi
 }
 
+# Disable immediate exit during retries of API operations
+set +e
 monitor_condition gitea_api_operation "Gitea API operation did not succeed yet...\n" 120 5
 RET=$?
+set -e
+
 if [[ $RET -ne 0 ]]
 then
     echo -e "\nFATAL: Gitea API operation did not succeed after several retries. ABORTED.\n"