Skip to content

Commit 408331b

Browse files
committed
Restore input restriction in workflow editor
1 parent c3390f7 commit 408331b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/galaxy/tool_util/parser/yaml.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,10 @@ def parse_input_type(self):
395395
return "param"
396396

397397
def parse_extensions(self):
398-
return [ext.strip().lower() for ext in self.input_dict.get("extensions", ["data"])]
398+
extensions = self.input_dict.get("extensions")
399+
if not extensions:
400+
extensions = self.get("format", "data").split(",")
401+
return [ext.strip().lower() for ext in extensions]
399402

400403
def parse_nested_inputs_source(self):
401404
assert self.parse_input_type() == "repeat"

0 commit comments

Comments
 (0)