@@ -289,7 +289,6 @@ def config_join(*args):
289289 volume = docker_util .DockerVolume (tool_directory )
290290 tool_volumes .append (volume )
291291
292- tool_definition = _tool_conf_entry_for (all_tool_paths )
293292 empty_tool_conf = config_join ("empty_tool_conf.xml" )
294293
295294 tool_conf = config_join ("tool_conf.xml" )
@@ -307,13 +306,11 @@ def config_join(*args):
307306
308307 template_args = dict (
309308 shed_tool_path = shed_tool_path ,
310- tool_definition = tool_definition ,
311309 tool_conf = tool_conf ,
312310 )
313311 tool_config_file = "%s,%s" % (tool_conf , shed_tool_conf )
314312
315- tool_conf_contents = _sub (TOOL_CONF_TEMPLATE , template_args )
316- write_file (tool_conf , tool_conf_contents )
313+ _write_tool_conf (ctx , all_tool_paths , tool_conf )
317314 write_file (empty_tool_conf , EMPTY_TOOL_CONF_TEMPLATE )
318315
319316 properties .update (dict (
@@ -406,7 +403,6 @@ def config_join(*args):
406403
407404 shed_tool_conf = kwds .get ("shed_tool_conf" ) or config_join ("shed_tools_conf.xml" )
408405 all_tool_paths = _all_tool_paths (runnables , ** kwds )
409- tool_definition = _tool_conf_entry_for (all_tool_paths )
410406 empty_tool_conf = config_join ("empty_tool_conf.xml" )
411407
412408 tool_conf = config_join ("tool_conf.xml" )
@@ -438,7 +434,6 @@ def config_join(*args):
438434 temp_directory = config_directory ,
439435 shed_tool_path = shed_tool_path ,
440436 database_location = database_location ,
441- tool_definition = tool_definition ,
442437 tool_conf = tool_conf ,
443438 debug = kwds .get ("debug" , "true" ),
444439 id_secret = kwds .get ("id_secret" , "test_secret" ),
@@ -521,8 +516,7 @@ def config_join(*args):
521516 env ["GALAXY_PID" ] = pid_file
522517 web_config = _sub (WEB_SERVER_CONFIG_TEMPLATE , template_args )
523518 write_file (config_join ("galaxy.ini" ), web_config )
524- tool_conf_contents = _sub (TOOL_CONF_TEMPLATE , template_args )
525- write_file (tool_conf , tool_conf_contents )
519+ _write_tool_conf (ctx , all_tool_paths , tool_conf )
526520 write_file (empty_tool_conf , EMPTY_TOOL_CONF_TEMPLATE )
527521
528522 shed_tool_conf_contents = _sub (SHED_TOOL_CONF_TEMPLATE , template_args )
@@ -1387,6 +1381,18 @@ def add_attribute(key, value):
13871381 kwds ["dependency_resolvers_config_file" ] = resolvers_conf
13881382
13891383
1384+ def _write_tool_conf (ctx , tool_paths , tool_conf_path ):
1385+ tool_definition = _tool_conf_entry_for (tool_paths )
1386+ tool_conf_template_kwds = dict (tool_definition = tool_definition )
1387+ tool_conf_contents = _sub (TOOL_CONF_TEMPLATE , tool_conf_template_kwds )
1388+ write_file (tool_conf_path , tool_conf_contents )
1389+ ctx .vlog (
1390+ "Writing tool_conf to path %s with contents [%s]" ,
1391+ tool_conf_path ,
1392+ tool_conf_contents ,
1393+ )
1394+
1395+
13901396def _validate_dependency_resolution_options (kwds ):
13911397 resolutions_strategies = [
13921398 "brew_dependency_resolution" ,
0 commit comments