refactor of create_unified_job in connection with new copy endpoint development

This commit is contained in:
AlanCoding
2016-11-20 19:47:15 -05:00
parent a39af2a7fd
commit 8cd4ba0175
12 changed files with 106 additions and 111 deletions
+1 -1
View File
@@ -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:
-2
View File
@@ -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,