summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/taler-deployment-config-instances7
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/taler-deployment-config-instances b/bin/taler-deployment-config-instances
index 7153287..219ee4d 100755
--- a/bin/taler-deployment-config-instances
+++ b/bin/taler-deployment-config-instances
@@ -27,21 +27,26 @@ def expect_env(name):
def wait_merchant_up():
# Check it started correctly and it is ready to serve requests.
checks = 10
+ url = urljoin(MERCHANT_BACKEND_BASE_URL, "/config")
+ print("Check URL: {}".format(url))
while checks > 0:
try:
- resp = requests.get(urljoin(MERCHANT_BACKEND_BASE_URL, "/config"), timeout=1.5)
+ resp = requests.get(url, timeout=1.5)
except Exception:
+ print("Merchant unreachable")
sleep(1)
checks -= 1
continue
if resp.status_code != 200:
+ print("Merchant reachable, but the request fails.")
sleep(1)
checks -= 1
continue
# Ready.
+ print("Merchant is up and running")
break
if checks == 0: