This is an automated email from the ASF dual-hosted git repository.

humbedooh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git


The following commit(s) were added to refs/heads/master by this push:
     new 9c3853a  Add in dburl component
9c3853a is described below

commit 9c3853ab3437427ac7dd334afca0cce4665fb97c
Author: Daniel Gruno <[email protected]>
AuthorDate: Sun Mar 28 20:25:54 2021 +0200

    Add in dburl component
---
 server/plugins/configuration.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/server/plugins/configuration.py b/server/plugins/configuration.py
index 4132511..40f144b 100644
--- a/server/plugins/configuration.py
+++ b/server/plugins/configuration.py
@@ -47,6 +47,7 @@ class OAuthConfig:
 
 
 class DBConfig:
+    dburl: str
     hostname: str
     port: int
     secure: bool
@@ -55,6 +56,7 @@ class DBConfig:
     max_hits: int
 
     def __init__(self, subyaml: dict):
+        self.dburl = str(subyaml.get("dburl", ""))
         self.hostname = str(subyaml.get("server", "localhost"))
         self.port = int(subyaml.get("port", 9200))
         self.secure = bool(subyaml.get("secure", False))

Reply via email to