diff --git a/awx/main/models/unified_jobs.py b/awx/main/models/unified_jobs.py index a9429636dc..189bbc2f8a 100644 --- a/awx/main/models/unified_jobs.py +++ b/awx/main/models/unified_jobs.py @@ -523,6 +523,8 @@ class UnifiedJob(PolymorphicModel, PasswordFieldsModel, CommonModelNameNotUnique try: os.remove(self.result_stdout_file) self.result_stdout_file = '' + if 'result_stdout_file' not in update_fields: + update_fields.append('result_stdout_file') except: pass # Meh. We don't care that much.