diff options
author | MS <ms@taler.net> | 2021-05-28 19:36:38 +0200 |
---|---|---|
committer | MS <ms@taler.net> | 2021-05-28 19:36:38 +0200 |
commit | eddbfeee1d05ffa961547b793fb476007c7d4f36 (patch) | |
tree | 10763038aa1a228c5229032e6e9543a87985de3b | |
parent | 384886066fa47ce31f293ba4155cf5369ff2f698 (diff) | |
download | deployment-eddbfeee1d05ffa961547b793fb476007c7d4f36.tar.gz deployment-eddbfeee1d05ffa961547b793fb476007c7d4f36.tar.bz2 deployment-eddbfeee1d05ffa961547b793fb476007c7d4f36.zip |
prefer default instance to PATCH others
-rwxr-xr-x | bin/taler-deployment-config-instances | 9 |
1 files changed, 1 insertions, 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 ) |