mirror of
https://github.com/ansible/awx.git
synced 2026-03-19 18:07:33 -02:30
Merge pull request #2840 from ryanpetrello/project-update-bug
resolve a nuanced traceback for JTs that run w/ a failed project Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
This commit is contained in:
@@ -1413,6 +1413,11 @@ class RunJob(BaseTask):
|
|||||||
|
|
||||||
def final_run_hook(self, job, status, **kwargs):
|
def final_run_hook(self, job, status, **kwargs):
|
||||||
super(RunJob, self).final_run_hook(job, status, **kwargs)
|
super(RunJob, self).final_run_hook(job, status, **kwargs)
|
||||||
|
if 'private_data_dir' not in kwargs:
|
||||||
|
# If there's no private data dir, that means we didn't get into the
|
||||||
|
# actual `run()` call; this _usually_ means something failed in
|
||||||
|
# the pre_run_hook method
|
||||||
|
return
|
||||||
if job.use_fact_cache:
|
if job.use_fact_cache:
|
||||||
job.finish_job_fact_cache(
|
job.finish_job_fact_cache(
|
||||||
kwargs['private_data_dir'],
|
kwargs['private_data_dir'],
|
||||||
|
|||||||
Reference in New Issue
Block a user