Merge pull request #8213 from jmchilton/fix_os_to_dict

Allow re-populating objectstore from to_dict form.
This commit is contained in:
Dannon
2019-06-24 13:44:09 -04:00
committed by GitHub
+7
View File
@@ -25,6 +25,7 @@ from galaxy.util import (
force_symlink,
umask_fix_perms,
)
from galaxy.util.bunch import Bunch
from galaxy.util.odict import odict
from galaxy.util.path import (
safe_makedirs,
@@ -892,6 +893,12 @@ def build_object_store_from_config(config, fsmon=False, config_xml=None, config_
"""
from_object = 'xml'
if config is None and config_dict is not None and 'config' in config_dict:
# Build a config object from to_dict of an ObjectStore.
config = Bunch(**config_dict["config"])
elif config is None:
raise Exception("build_object_store_from_config sent None as config parameter and one cannot be recovered from config_dict")
if config_xml is None and config_dict is None:
config_file = config.object_store_config_file
if os.path.exists(config_file):