From ac4bde69cc03fc65df486f310bbd1160ea35d212 Mon Sep 17 00:00:00 2001 From: Luke Sneeringer Date: Wed, 8 Oct 2014 10:48:01 -0500 Subject: [PATCH] Minor commit to make result_stdout_file become empty string. --- awx/main/models/unified_jobs.py | 2 ++ 1 file changed, 2 insertions(+) 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.