[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-deployment] branch master updated: fix update of instances' auth
From: |
gnunet |
Subject: |
[taler-deployment] branch master updated: fix update of instances' auth |
Date: |
Tue, 11 May 2021 15:53:08 +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 ecaddf6 fix update of instances' auth
ecaddf6 is described below
commit ecaddf6a21199215e7e4dbf6058b179b70e07993
Author: MS <ms@taler.net>
AuthorDate: Tue May 11 15:52:55 2021 +0200
fix update of instances' auth
---
bin/taler-deployment-config-instances | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/bin/taler-deployment-config-instances
b/bin/taler-deployment-config-instances
index 1da8dde..144073f 100755
--- a/bin/taler-deployment-config-instances
+++ b/bin/taler-deployment-config-instances
@@ -51,16 +51,14 @@ def ensure_instance(instance_id, name, payto_uris, auth):
urljoin(MERCHANT_BACKEND_BASE_URL, "private/instances"), json=req
)
if create_resp.status_code < 200 or create_resp.status_code >= 300:
- print(f"failed to create instance {instance_id}")
- print(create_resp.text)
- print(f"trying to PATCH instance {instance_id}")
+ print(f"Instance '{instance_id}' was already in the system. Updating
its auth now")
if instance_id != "Tutorial":
- patch_resp = requests.patch(
+ patch_resp = requests.post(
urljoin(MERCHANT_BACKEND_BASE_URL,
- f"private/instances/{instance_id}"), json=req
+ f"private/instances/{instance_id}/auth"), json=auth
)
if patch_resp.status_code < 200 or patch_resp.status_code >= 300:
- print(f"failed to PATCH instance {instance_id}")
+ print(f"Failed to update auth of '{instance_id}'")
print(patch_resp.text)
exit(1)
else:
--
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: fix update of instances' auth,
gnunet <=