mirror of
https://github.com/ZwareBear/awx.git
synced 2026-05-15 07:48:38 -05:00
refactor of create_unified_job in connection with new copy endpoint development
This commit is contained in:
@@ -178,7 +178,7 @@ def mk_workflow_job_template(name, extra_vars='', spec=None, organization=None,
|
||||
wfjt = WorkflowJobTemplate(name=name, extra_vars=extra_vars, organization=organization)
|
||||
|
||||
wfjt.survey_spec = spec
|
||||
if wfjt.survey_spec is not None:
|
||||
if wfjt.survey_spec:
|
||||
wfjt.survey_enabled = True
|
||||
|
||||
if persisted:
|
||||
|
||||
@@ -393,8 +393,6 @@ def create_workflow_job_template(name, organization=None, persisted=True, **kwar
|
||||
|
||||
if 'survey' in kwargs:
|
||||
spec = create_survey_spec(kwargs['survey'])
|
||||
else:
|
||||
spec = {}
|
||||
|
||||
wfjt = mk_workflow_job_template(name,
|
||||
organization=organization,
|
||||
|
||||
Reference in New Issue
Block a user