mirror of
https://github.com/ansible/awx.git
synced 2026-08-01 18:39:54 -02:30
graceful handling of null project and inventory in workflow
This commit is contained in:
@@ -606,6 +606,12 @@ class Job(UnifiedJob, JobOptions, SurveyJobMixin, JobNotificationMixin):
|
||||
evars.update(extra_vars)
|
||||
self.update_fields(extra_vars=json.dumps(evars))
|
||||
|
||||
def signal_start(self, **kwargs):
|
||||
# Block cases that would cause the task manager to error
|
||||
if self.inventory_id is None or self.project_id is None:
|
||||
return False
|
||||
return super(Job, self).signal_start(**kwargs)
|
||||
|
||||
def display_artifacts(self):
|
||||
'''
|
||||
Hides artifacts if they are marked as no_log type artifacts.
|
||||
|
||||
Reference in New Issue
Block a user