Lower tool id case while populating resource params

This commit is contained in:
Estelle Ancelet
2021-04-06 18:08:22 +02:00
parent 998f092cf9
commit d5cb3c3e2f
+1 -1
View File
@@ -1253,7 +1253,7 @@ class Tool(Dictifiable):
def populate_resource_parameters(self, tool_source):
root = getattr(tool_source, 'root', None)
if root is not None and hasattr(self.app, 'job_config') and hasattr(self.app.job_config, 'get_tool_resource_xml'):
resource_xml = self.app.job_config.get_tool_resource_xml(root.get('id'), self.tool_type)
resource_xml = self.app.job_config.get_tool_resource_xml(root.get('id', '').lower(), self.tool_type)
if resource_xml is not None:
inputs = root.find('inputs')
if inputs is None: