Skip to content

Commit

Permalink
Fix ChangeDatatype action for collection output
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdbeek committed Mar 8, 2019
1 parent 62d8f2d commit 54adb6e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/galaxy/jobs/actions/post.py
Expand Up @@ -74,6 +74,10 @@ def execute(cls, app, sa_session, action, job, replacement_dict):
for dataset_assoc in job.output_datasets:
if action.output_name == '' or dataset_assoc.name == action.output_name:
app.datatypes_registry.change_datatype(dataset_assoc.dataset, action.action_arguments['newtype'])
for dataset_collection_assoc in job.output_dataset_collection_instances:
if action.output_name == '' or dataset_collection_assoc.name == action.output_name:
for dataset_instance in dataset_collection_assoc.dataset_collection_instance.dataset_instances:
app.datatypes_registry.change_datatype(dataset_instance, action.action_arguments['newtype'])

@classmethod
def get_short_str(cls, pja):
Expand Down

0 comments on commit 54adb6e

Please sign in to comment.