[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-deployment] branch master updated: read backend base URL from env
From: |
gnunet |
Subject: |
[taler-deployment] branch master updated: read backend base URL from env |
Date: |
Fri, 17 Jul 2020 17:37:26 +0200 |
This is an automated email from the git hooks/post-receive script.
ms pushed a commit to branch master
in repository deployment.
The following commit(s) were added to refs/heads/master by this push:
new 7c3663d read backend base URL from env
7c3663d is described below
commit 7c3663d087b6410d0eec312a28d7a5278f83fa0f
Author: MS <ms@taler.net>
AuthorDate: Fri Jul 17 17:37:09 2020 +0200
read backend base URL from env
---
bin/taler-config-instances | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/bin/taler-config-instances b/bin/taler-config-instances
index 6ad0bc7..f13464b 100755
--- a/bin/taler-config-instances
+++ b/bin/taler-config-instances
@@ -1,11 +1,15 @@
#!/usr/bin/env python3
from requests import post
+from os import environ
+from sys import exit
-MERCHANT_BACKEND_BASE_URL = "http://localhost:9966"
-INSTANCE_CONFIG_URL = "{}/private/instances".format(MERCHANT_BACKEND_BASE_URL)
+MERCHANT_BACKEND_BASE_URL = environ.get("TALER_ENV_MERCHANT_BACKEND")
+if not MERCHANT_BACKEND_BASE_URL:
+ print("TALER_ENV_MERCHANT_BACKEND not defined. Please source the
~/activate file.")
+ exit(1)
-# FIXME: fetch base URL from: TALER_ENV_MERCHANT_BACKEND!
+INSTANCE_CONFIG_URL = "{}/private/instances".format(MERCHANT_BACKEND_BASE_URL)
def expectResponse(response, expected_status_code):
if response.status_code != expected_status_code:
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-deployment] branch master updated: read backend base URL from env,
gnunet <=