Skip to content

Commit

Permalink
Allow hashtag usage in workflow PJA tag addition mechanism
Browse files Browse the repository at this point in the history
  • Loading branch information
dannon committed Jun 1, 2017
1 parent 0c43954 commit 1290532
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/galaxy/jobs/actions/post.py
Expand Up @@ -331,6 +331,7 @@ class TagDatasetAction(DefaultJobAction):
def execute(cls, app, sa_session, action, job, replacement_dict):
if action.action_arguments:
tags = [t.strip() for t in action.action_arguments.get('tags', '').split(',') if t.strip()]
tags = [t.replace('#', 'name:') if t.startswith('#') else t for t in tags]
if tags:
for dataset_assoc in job.output_datasets:
if action.output_name == '' or dataset_assoc.name == action.output_name:
Expand Down

0 comments on commit 1290532

Please sign in to comment.