gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-deployment] branch master updated: prefer default instance to PAT


From: gnunet
Subject: [taler-deployment] branch master updated: prefer default instance to PATCH others
Date: Fri, 28 May 2021 19:36:51 +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 eddbfee  prefer default instance to PATCH others
eddbfee is described below

commit eddbfeee1d05ffa961547b793fb476007c7d4f36
Author: MS <ms@taler.net>
AuthorDate: Fri May 28 19:36:38 2021 +0200

    prefer default instance to PATCH others
---
 bin/taler-deployment-config-instances | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/bin/taler-deployment-config-instances 
b/bin/taler-deployment-config-instances
index 426b84c..9f71c84 100755
--- a/bin/taler-deployment-config-instances
+++ b/bin/taler-deployment-config-instances
@@ -61,13 +61,6 @@ TALER_ENV_FRONTENDS_APITOKEN = 
expect_env("TALER_ENV_FRONTENDS_APITOKEN")
 authorization_header = {"Authorization": f"Bearer 
{TALER_ENV_FRONTENDS_APITOKEN}"}
 
 def ensure_instance(instance_id, name, payto_uris, auth):
-    # FIXME: Use auth once the default instance also uses token auth
-    instance_response = requests.get(
-        urljoin(MERCHANT_BACKEND_BASE_URL, 
f"private/instances/${instance_id}"),
-        headers = authorization_header
-    )
-    if instance_response.status_code == 200:
-        return
     req = dict(
         id=instance_id,
         name=name,
@@ -93,7 +86,7 @@ def ensure_instance(instance_id, name, payto_uris, auth):
         if instance_id != "Tutorial":
             patch_resp = requests.post(
                 urljoin(MERCHANT_BACKEND_BASE_URL,
-                f"instances/{instance_id}/private/auth"),
+                f"private/instances/{instance_id}/auth"),
                 json=auth,
                 headers = authorization_header
             )

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]