Skip to content

Commit

Permalink
Fix up bug with convergence node paths and artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanCoding committed Jun 14, 2022
1 parent d487d6a commit b36cba4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion awx/main/models/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,8 @@ def get_job_kwargs(self):
for parent_node in self.get_parent_nodes():
is_root_node = False
aa_dict.update(parent_node.ancestor_artifacts)
aa_dict.update(parent_node.job.get_effective_artifacts(parents_set=set([self.workflow_job_id])))
if parent_node.job:
aa_dict.update(parent_node.job.get_effective_artifacts(parents_set=set([self.workflow_job_id])))
if aa_dict and not is_root_node:
self.ancestor_artifacts = aa_dict
self.save(update_fields=['ancestor_artifacts'])
Expand Down

0 comments on commit b36cba4

Please sign in to comment.