mirror of
https://github.com/ansible/awx.git
synced 2026-01-15 11:50:42 -03:30
Consider that the project could be none when launching dependencies
This commit is contained in:
parent
8b0735a910
commit
fc6630fd25
@ -315,10 +315,9 @@ class TaskManager():
|
||||
|
||||
def generate_dependencies(self, task):
|
||||
dependencies = []
|
||||
# TODO: What if the project is null ?
|
||||
if type(task) is Job:
|
||||
|
||||
if task.project.scm_update_on_launch is True and \
|
||||
# TODO: Can remove task.project None check after scan-job-default-playbook is removed
|
||||
if task.project is not None and task.project.scm_update_on_launch is True and \
|
||||
self.should_update_related_project(task):
|
||||
project_task = self.create_project_update(task)
|
||||
dependencies.append(project_task)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user