Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[17.09] Fix the PJA type issue when mapping renames over nested lists. #5414

Merged
merged 1 commit into from Jan 31, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 4 additions & 3 deletions lib/galaxy/jobs/actions/post.py
Expand Up @@ -145,9 +145,10 @@ def execute(cls, app, sa_session, action, job, replacement_dict):
# Ditto for collections...
for input_assoc in job.input_dataset_collections:
if input_assoc.name == input_file_var:
if input_assoc.dataset_collection:
hdca = input_assoc.dataset_collection
replacement = hdca.name
# Either a HDCA or a DCE - only HDCA has a name.
has_collection = input_assoc.dataset_collection
if has_collection and hasattr(has_collection, "name"):
replacement = has_collection.name

# In case name was None.
replacement = replacement or ''
Expand Down