This is an automated email from the ASF dual-hosted git repository. sebb pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-ponymail.git
The following commit(s) were added to refs/heads/master by this push: new 769cce2 Use new config module 769cce2 is described below commit 769cce260fbad9dd6735ed79c43827f8a33fd840 Author: Sebb <s...@apache.org> AuthorDate: Sat May 19 13:54:04 2018 +0100 Use new config module Changes behaviour to expect ponymail.cfg in tools. Only affects the new scripts missing.py and nullfav.py --- tools/elastic.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tools/elastic.py b/tools/elastic.py index 287fa09..0bc5d4e 100755 --- a/tools/elastic.py +++ b/tools/elastic.py @@ -20,7 +20,7 @@ also adds defaults for most methods """ -import configparser +from ponymailconfig import PonymailConfig import sys import logging import certifi @@ -34,8 +34,7 @@ except Exception as e: class Elastic: def __init__(self, dbname=None, **kwargs): # Fetch config - config = configparser.RawConfigParser() - config.read('ponymail.cfg') + config = PonymailConfig() self.dbname = dbname or config.get("elasticsearch", "dbname") ssl = config.get("elasticsearch", "ssl", fallback="false").lower() == 'true' uri = config.get("elasticsearch", "uri", fallback="") -- To stop receiving notification emails like this one, please contact s...@apache.org.