yaml_config - Don't parse YAML configurations as ini files.

This commit is contained in:
John Chilton
2017-12-06 20:28:20 -05:00
parent 14f0185b21
commit f06860a8fb
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -531,7 +531,7 @@ class Configuration(object):
global_conf_parser = configparser.ConfigParser()
self.config_file = None
self.global_conf_parser = global_conf_parser
if global_conf and "__file__" in global_conf:
if global_conf and "__file__" in global_conf and ".yml" not in global_conf["__file__"]:
self.config_file = global_conf['__file__']
global_conf_parser.read(global_conf['__file__'])
# Heartbeat log file name override
+1 -1
View File
@@ -134,7 +134,7 @@ class Configuration(object):
global_conf = kwargs.get('global_conf', None)
global_conf_parser = configparser.ConfigParser()
self.global_conf_parser = global_conf_parser
if global_conf and "__file__" in global_conf:
if global_conf and "__file__" in global_conf and ".yml" not in global_conf["__file__"]:
global_conf_parser.read(global_conf['__file__'])
self.running_functional_tests = string_as_bool(kwargs.get('running_functional_tests', False))
self.citation_cache_type = kwargs.get("citation_cache_type", "file")