mirror of
https://github.com/ansible/awx.git
synced 2026-02-27 15:58:45 -03:30
Pass updated kwargs to new unified job instance. Fixes https://trello.com/c/LFsi5Cq5
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user