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