taler-deployment

Deployment scripts and configuration files
Log | Files | Refs | README

commit 98f972c0682efaa281cafa8c32a81e5ccf1c3b3a
parent 1cec131bfb5d2164b15bfdf041f892ee41615aa5
Author: MS <ms@taler.net>
Date:   Fri, 17 Jul 2020 18:54:08 +0200

fix auth

Diffstat:
Mbin/taler-config-instances | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/bin/taler-config-instances b/bin/taler-config-instances @@ -1,7 +1,6 @@ #!/usr/bin/env python3 from requests import post -from requests.auth import HTTPBasicAuth from os import environ from sys import exit @@ -37,7 +36,7 @@ blog_config = dict( ) expectResponse( - post(INSTANCE_CONFIG_URL, json=blog_config, auth=HTTPBasicAuth("ApiKey", "sandbox")), + post(INSTANCE_CONFIG_URL, json=blog_config, headers={"Authorization": "ApiKey sandbox"}), 204 ) @@ -58,7 +57,7 @@ donations_config = dict( ) expectResponse( - post(INSTANCE_CONFIG_URL, json=donations_config), + post(INSTANCE_CONFIG_URL, json=donations_config, headers={"Authorization": "ApiKey sandbox"}), 204 )