[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-deployment] branch master updated: exempting Tutorial from being
From: |
gnunet |
Subject: |
[taler-deployment] branch master updated: exempting Tutorial from being PATCHed |
Date: |
Wed, 28 Apr 2021 15:59:55 +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 0f0da89 exempting Tutorial from being PATCHed
0f0da89 is described below
commit 0f0da89ec0302b6b3c9d451f64bb0ce4b6204b9c
Author: MS <ms@taler.net>
AuthorDate: Wed Apr 28 15:59:17 2021 +0200
exempting Tutorial from being PATCHed
---
bin/taler-deployment-config-instances | 20 ++++++++++++--------
1 file changed, 12 insertions(+), 8 deletions(-)
diff --git a/bin/taler-deployment-config-instances
b/bin/taler-deployment-config-instances
index 81dc6b1..1da8dde 100755
--- a/bin/taler-deployment-config-instances
+++ b/bin/taler-deployment-config-instances
@@ -54,13 +54,17 @@ def ensure_instance(instance_id, name, payto_uris, auth):
print(f"failed to create instance {instance_id}")
print(create_resp.text)
print(f"trying to PATCH instance {instance_id}")
- create_resp = requests.patch(
- urljoin(MERCHANT_BACKEND_BASE_URL,
f"private/instances/{instance_id}"), json=req
- )
- if create_resp.status_code < 200 or create_resp.status_code >= 300:
- print(f"failed to PATCH instance {instance_id}")
- print(create_resp.text)
- exit(1)
+ if instance_id != "Tutorial":
+ patch_resp = requests.patch(
+ urljoin(MERCHANT_BACKEND_BASE_URL,
+ f"private/instances/{instance_id}"), json=req
+ )
+ if patch_resp.status_code < 200 or patch_resp.status_code >= 300:
+ print(f"failed to PATCH instance {instance_id}")
+ print(patch_resp.text)
+ exit(1)
+ else:
+ exit(1)
ensure_instance(
"blog",
@@ -117,5 +121,5 @@ ensure_instance(
"Tutorial",
name="Tutorial",
payto_uris=[f"payto://x-taler-bank/bank.{TALER_ENV_NAME}.taler.net/Tutorial"],
- auth=dict(method="token", token="secret-token:sandbox"),
+ auth=dict(method="token", token="secret-token:sandbox")
)
--
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: exempting Tutorial from being PATCHed,
gnunet <=