[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-deployment] branch master updated: taler-local
From: |
gnunet |
Subject: |
[taler-deployment] branch master updated: taler-local |
Date: |
Wed, 01 Dec 2021 14:12:43 +0100 |
This is an automated email from the git hooks/post-receive script.
ms pushed a commit to branch master
in repository deployment.
The following commit(s) were added to refs/heads/master by this push:
new 41f21e3 taler-local
41f21e3 is described below
commit 41f21e32915139b19601dcdcefec95c93c2a0a81
Author: ms <ms@taler.net>
AuthorDate: Wed Dec 1 14:12:03 2021 +0100
taler-local
allow bank host and protocol to be passed as CLI
arguments to the withdraw subcommand.
---
bin/WIP/taler-local | 17 ++++++++++++++---
1 file changed, 14 insertions(+), 3 deletions(-)
diff --git a/bin/WIP/taler-local b/bin/WIP/taler-local
index 7c495ff..e8b6df4 100755
--- a/bin/WIP/taler-local
+++ b/bin/WIP/taler-local
@@ -1373,7 +1373,7 @@ def prepare(x_forwarded_host, x_forwarded_proto):
password=EXCHANGE_BANK_ACCOUNT_PASSWORD
)
print(" OK")
- print_nn("Getting exchange payto-URI from the bank.")
+ print_nn("Getting exchange payto-URI from the bank...")
exchange_bank_account_info = get_sandbox_account_info(
SANDBOX_URL,
EXCHANGE_BANK_ACCOUNT_SANDBOX,
@@ -1694,9 +1694,20 @@ def stop():
subprocess.run(["systemctl", "--user", "stop", "taler-local-*.service"],
check=True)
@cli.command()
-def withdraw():
+@click.option(
+ "--bank-host", metavar="HOST",
+ help="Host serving the bank.",
+ default="localhost:8080"
+)
+@click.option(
+ "--bank-proto", metavar="PROTO",
+ help="Protocol accepred by the bank",
+ default="http"
+)
+def withdraw(bank_host, bank_proto):
print_nn("Create withdrawal operation...")
- resp = requests.post(REV_PROXY_URL +
+ bank_base_url = bank_proto + "://" + bank_host
+ resp = requests.post(bank_base_url +
f"/sandbox/demobanks/default/access-api/accounts/{CUSTOMER_BANK_ACCOUNT}/withdrawals",
json = dict(amount=CURRENCY + ":5"),
auth = requests.auth.HTTPBasicAuth(CUSTOMER_BANK_ACCOUNT,
CUSTOMER_BANK_PASSWORD)
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [taler-deployment] branch master updated: taler-local, gnunet, 2021/12/01
- [taler-deployment] branch master updated: taler-local, gnunet, 2021/12/01
- [taler-deployment] branch master updated: taler-local,
gnunet <=
- [taler-deployment] branch master updated: taler-local, gnunet, 2021/12/01
- [taler-deployment] branch master updated: taler-local, gnunet, 2021/12/01
- [taler-deployment] branch master updated: taler-local, gnunet, 2021/12/01
- [taler-deployment] branch master updated: taler-local, gnunet, 2021/12/01
- [taler-deployment] branch master updated: taler-local, gnunet, 2021/12/08
- [taler-deployment] branch master updated: taler-local, gnunet, 2021/12/08