summaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
authorMS <ms@taler.net>2020-11-13 17:29:56 +0100
committerMS <ms@taler.net>2020-11-13 17:29:56 +0100
commit269992a13b3c254a7283877eb8910324944706ca (patch)
treed43060a0c45135fcca828c95d05ab69fd3f6668d /cli
parenta89c1c13dcc5ece619c2f60cb1c2e7adc9d555ab (diff)
downloadlibeufin-269992a13b3c254a7283877eb8910324944706ca.tar.gz
libeufin-269992a13b3c254a7283877eb8910324944706ca.tar.bz2
libeufin-269992a13b3c254a7283877eb8910324944706ca.zip
cli, fix facade creation
Diffstat (limited to 'cli')
-rwxr-xr-xcli/libeufin-cli25
1 files changed, 13 insertions, 12 deletions
diff --git a/cli/libeufin-cli b/cli/libeufin-cli
index 945451f6..b388263c 100755
--- a/cli/libeufin-cli
+++ b/cli/libeufin-cli
@@ -315,20 +315,21 @@ def new_facade(obj, facade_name, connection_name, account_name):
try:
resp = post(
url,
- auth=auth.HTTPBasicAuth(obj.username, obj.password,
+ auth=auth.HTTPBasicAuth(obj.username, obj.password),
json=dict(
- name=facade_name,
- type="taler-wire-gateway",
- creator=obj.username,
- config=dict(
- bankAccount=account_name,
- bankConnection=connection_name,
- reserveTransferLevel="UNUSED",
- intervalIncremental="UNUSED"
+ name=facade_name,
+ type="taler-wire-gateway",
+ creator=obj.username,
+ config=dict(
+ bankAccount=account_name,
+ bankConnection=connection_name,
+ reserveTransferLevel="UNUSED",
+ intervalIncremental="UNUSED"
+ )
)
- )))
- except Exception:
- print("Could not reach sandbox")
+ )
+ except Exception as e:
+ print(f"Could not reach nexus (at {obj.nexus_base_url}): {e}")
exit(1)
print(resp.content.decode("utf-8"))