gnunet-svn
[Top][All Lists]
Advanced

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

[taler-taler-merchant-demos] branch master updated: fix configuration pa


From: gnunet
Subject: [taler-taler-merchant-demos] branch master updated: fix configuration parsing
Date: Fri, 09 Oct 2020 13:57:35 +0200

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

ms pushed a commit to branch master
in repository taler-merchant-demos.

The following commit(s) were added to refs/heads/master by this push:
     new a3f0d49  fix configuration parsing
a3f0d49 is described below

commit a3f0d4936a2778aaa139855f11b2f5a42c628023
Author: MS <ms@taler.net>
AuthorDate: Fri Oct 9 13:57:23 2020 +0200

    fix configuration parsing
---
 bin/taler-merchant-demos | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/bin/taler-merchant-demos b/bin/taler-merchant-demos
index 58c72d0..f2318bf 100755
--- a/bin/taler-merchant-demos
+++ b/bin/taler-merchant-demos
@@ -91,7 +91,7 @@ def handle_serve_http(config, whichShop, port=None):
         sys.exit(1)
 
 def handle_serve_from_config(config_obj, which_shop):
-    if config_obj.value_string("blog", "serve", required=False) == "http":
+    if config_obj.value_string("blog", "serve", required=True).lower() == 
"http":
         http_port = config_obj.value_int(which_shop, "port")        
         return handle_serve_http(config_obj, which_shop, http_port)
     handle_serve_uwsgi(config_obj, which_shop)
@@ -108,8 +108,7 @@ def demos(config, http_port, which_shop):
         os.environ["TALER_CONFIG_FILE"] = config
     config_obj = TalerConfig.from_file(os.environ.get("TALER_CONFIG_FILE"))
     if http_port:
-        handle_serve_http(config_obj, which_shop, http_port)
-    else:
-        handle_serve_from_config(config_obj, which_shop)
-        handle_serve_uwsgi(config_obj, which_shop)
+        return handle_serve_http(config_obj, which_shop, http_port)
+    handle_serve_from_config(config_obj, which_shop)
+
 demos()

-- 
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]