diff options
author | MS <ms@taler.net> | 2021-05-28 22:12:31 +0200 |
---|---|---|
committer | MS <ms@taler.net> | 2021-05-28 22:12:31 +0200 |
commit | a44c0943e831db612013b13f3b59f22741f01072 (patch) | |
tree | 65a242251e97bdb13b90aa594b816b705b9f65fc /bin/taler-deployment-config-instances | |
parent | 0add7c44dc9f24b2b05f80706d331fdff085b8af (diff) | |
download | deployment-a44c0943e831db612013b13f3b59f22741f01072.tar.gz deployment-a44c0943e831db612013b13f3b59f22741f01072.tar.bz2 deployment-a44c0943e831db612013b13f3b59f22741f01072.zip |
GET wants auth too
Diffstat (limited to 'bin/taler-deployment-config-instances')
-rwxr-xr-x | bin/taler-deployment-config-instances | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/taler-deployment-config-instances b/bin/taler-deployment-config-instances index 4570109..ad1feec 100755 --- a/bin/taler-deployment-config-instances +++ b/bin/taler-deployment-config-instances @@ -62,7 +62,10 @@ authorization_header = {"Authorization": f"Bearer {TALER_ENV_FRONTENDS_APITOKEN} def ensure_instance(instance_id, name, payto_uris, auth): - resp = requests.get(urljoin(MERCHANT_BACKEND_BASE_URL, f"private/instances/{instance_id}")) + resp = requests.get( + urljoin(MERCHANT_BACKEND_BASE_URL, f"private/instances/{instance_id}"), + headers = authorization_header + ) # Instance exists, we PATCH the auth just in case it changed. if resp.status_code == 200: |