mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Merge pull request #8213 from jmchilton/fix_os_to_dict
Allow re-populating objectstore from to_dict form.
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user