strict per item in config_files

This commit is contained in:
Yuming Zhu 2019-10-09 19:06:01 +08:00 committed by Tomas Kopecek
parent 153ac4058d
commit b2b8d5f9cc
8 changed files with 141 additions and 86 deletions

View file

@ -269,7 +269,7 @@ def send_queued_msgs(cbtype, *args, **kws):
log = logging.getLogger('koji.plugin.protonmsg')
global CONFIG
if not CONFIG:
CONFIG = koji.read_config_files(CONFIG_FILE, strict=True)
CONFIG = koji.read_config_files([(CONFIG_FILE, True)])
urls = CONFIG.get('broker', 'urls').split()
test_mode = False
if CONFIG.has_option('broker', 'test_mode'):