From a942688775cebae9dc26fcf737c101ddf1a9289d Mon Sep 17 00:00:00 2001 From: JHCD Date: Wed, 20 May 2015 17:25:22 +0200 Subject: [PATCH] small change in configParser --- plugins/BosMon/BosMon.py | 4 ++-- plugins/template/template.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/BosMon/BosMon.py b/plugins/BosMon/BosMon.py index df73f08..c4923bc 100644 --- a/plugins/BosMon/BosMon.py +++ b/plugins/BosMon/BosMon.py @@ -13,7 +13,7 @@ def run(typ,freq,data): #ConfigParser logging.debug("reading config file") try: - for key,val in globals.config.items("BOSWatch"): + for key,val in globals.config.items("BosMon"): logging.debug(" - %s = %s", key, val) except: logging.exception("cannot read config file") @@ -53,4 +53,4 @@ def run(typ,freq,data): else: logging.warning("undefined typ '%s'", typ) except: - logging.exception("") \ No newline at end of file + logging.exception("") diff --git a/plugins/template/template.py b/plugins/template/template.py index 5b70cba..b7db7d8 100644 --- a/plugins/template/template.py +++ b/plugins/template/template.py @@ -28,7 +28,7 @@ def run(typ,freq,data): #ConfigParser logging.debug("reading config file") try: - for key,val in globals.config.items("BOSWatch"): + for key,val in globals.config.items("template"): logging.debug(" - %s = %s", key, val) except: logging.exception("cannot read config file") @@ -43,4 +43,4 @@ def run(typ,freq,data): logging.warning(typ + " not supported") except: - logging.exception("unknown error") \ No newline at end of file + logging.exception("unknown error")