mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
yaml_config - Don't parse YAML configurations as ini files.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user