From 8da5ba60f3560fc7b25589c48feeb5298799cfdb Mon Sep 17 00:00:00 2001 From: Chris Church Date: Sat, 24 Jan 2015 17:48:49 -0500 Subject: [PATCH] Pass updated kwargs to new unified job instance. Fixes https://trello.com/c/LFsi5Cq5 --- awx/main/models/unified_jobs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/awx/main/models/unified_jobs.py b/awx/main/models/unified_jobs.py index afe2dbf057..4786567fef 100644 --- a/awx/main/models/unified_jobs.py +++ b/awx/main/models/unified_jobs.py @@ -312,8 +312,8 @@ class UnifiedJobTemplate(PolymorphicModel, CommonModelNameNotUnique): create_kwargs[field_name] = kwargs[field_name] elif hasattr(self, field_name): create_kwargs[field_name] = getattr(self, field_name) - kwargs = self._update_unified_job_kwargs(**create_kwargs) - unified_job = unified_job_class(**create_kwargs) + new_kwargs = self._update_unified_job_kwargs(**create_kwargs) + unified_job = unified_job_class(**new_kwargs) if save_unified_job: unified_job.save() return unified_job