gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libeufin] 05/07: --override option affects now only the registration po


From: gnunet
Subject: [libeufin] 05/07: --override option affects now only the registration policy.
Date: Tue, 10 May 2022 12:41:31 +0200

This is an automated email from the git hooks/post-receive script.

ms pushed a commit to branch master
in repository libeufin.

commit 93f45f454ca081639c29d3340ad3da572c0db90e
Author: ms <ms@taler.net>
AuthorDate: Tue May 10 12:09:23 2022 +0200

    --override option affects now only the registration policy.
---
 sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt 
b/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
index 91615a08..d9b828c8 100644
--- a/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
+++ b/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
@@ -138,7 +138,8 @@ class Config : CliktCommand(
     )
     private val overrideOption by option(
         "--override",
-        help = "Override an existing demobank.  WARNING: every value NOT given 
here will be reset to the default!"
+        help = "Override an existing --allow/disallow -registrations policy." +
+                "  It has NO effect on other options"
     ).flag("--no-override", default = false)
     private val currencyOption by option("--currency").default("EUR")
     private val bankDebtLimitOption by 
option("--bank-debt-limit").int().default(1000000)
@@ -162,11 +163,7 @@ class Config : CliktCommand(
                 }.firstOrNull()
                 if (maybeDemobank != null) {
                     if (overrideOption) {
-                        maybeDemobank.currency = currencyOption
-                        maybeDemobank.bankDebtLimit = bankDebtLimitOption
-                        maybeDemobank.usersDebtLimit = usersDebtLimitOption
                         maybeDemobank.allowRegistrations = 
allowRegistrationsOption
-                        maybeDemobank.withSignupBonus = withSignupBonusOption
                         return@transaction
                     }
                     println("Error, demobank ${nameArgument} exists already, 
not overriding it.")

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]