Allow setting identifier for approval nodes

This commit is contained in:
AlanCoding
2020-04-03 15:33:57 -04:00
parent 29b567d6e1
commit dbe3863b04
2 changed files with 30 additions and 3 deletions

View File

@@ -3611,9 +3611,11 @@ class LaunchConfigurationBaseSerializer(BaseSerializer):
elif self.instance:
ujt = self.instance.unified_job_template
if ujt is None:
if 'workflow_job_template' in attrs:
return {'workflow_job_template': attrs['workflow_job_template']}
return {}
ret = {}
for fd in ('workflow_job_template', 'identifier'):
if fd in attrs:
ret[fd] = attrs[fd]
return ret
# build additional field survey_passwords to track redacted variables
password_dict = {}