Skip to content

Commit

Permalink
Use more traditional Galaxy config handling for DTD.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmchilton committed Jul 20, 2016
1 parent 99161d6 commit ed48c6c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/galaxy/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,7 @@ def __parse_config_file_options( self, kwargs ):
datatypes_config_file=[ 'config/datatypes_conf.xml', 'datatypes_conf.xml', 'config/datatypes_conf.xml.sample' ],
external_service_type_config_file=[ 'config/external_service_types_conf.xml', 'external_service_types_conf.xml', 'config/external_service_types_conf.xml.sample' ],
job_config_file=[ 'config/job_conf.xml', 'job_conf.xml' ],
tool_destinations_config_file=[ 'config/tool_destinations.yml', 'config/tool_destinations.yml.sample' ],
job_metrics_config_file=[ 'config/job_metrics_conf.xml', 'job_metrics_conf.xml', 'config/job_metrics_conf.xml.sample' ],
dependency_resolvers_config_file=[ 'config/dependency_resolvers_conf.xml', 'dependency_resolvers_conf.xml' ],
job_resource_params_file=[ 'config/job_resource_params_conf.xml', 'job_resource_params_conf.xml' ],
Expand Down
5 changes: 4 additions & 1 deletion lib/galaxy/jobs/rules/dynamic_tool_destination.py
Original file line number Diff line number Diff line change
Expand Up @@ -1103,7 +1103,7 @@ def __init__(self, *kwd):


def map_tool_to_destination(
job, app, tool, user_email, test=False, path="/config/tool_destinations.yml"):
job, app, tool, user_email, test=False, path=None):
"""
Dynamically allocate resources
Expand All @@ -1128,6 +1128,9 @@ def map_tool_to_destination(
records_rule_present = False

# Get configuration from tool_destinations.yml
if path is None:
path = app.config.tool_destinations_config_file

try:
config = parse_yaml(path)
except MalformedYMLException as e:
Expand Down

0 comments on commit ed48c6c

Please sign in to comment.