summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMS <ms@taler.net>2021-04-28 15:59:17 +0200
committerMS <ms@taler.net>2021-04-28 15:59:41 +0200
commit0f0da89ec0302b6b3c9d451f64bb0ce4b6204b9c (patch)
tree112c2c8fb1374d08c984e7de6b110d9e6807f868
parent7d3c0a89d61b992ce5732283a3a5639bf15b222e (diff)
downloaddeployment-0f0da89ec0302b6b3c9d451f64bb0ce4b6204b9c.tar.gz
deployment-0f0da89ec0302b6b3c9d451f64bb0ce4b6204b9c.tar.bz2
deployment-0f0da89ec0302b6b3c9d451f64bb0ce4b6204b9c.zip
exempting Tutorial from being PATCHed
-rwxr-xr-xbin/taler-deployment-config-instances20
1 files 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")
)