Remove EE from the workflow job template collection module

This commit is contained in:
Jeff Bradberry 2021-06-14 15:03:01 -04:00 committed by Shane McDonald
parent 85bb4e976f
commit 6c1ba03235
No known key found for this signature in database
GPG Key ID: 6F374AF6E9EB9374

View File

@ -47,10 +47,6 @@ options:
description:
- Variables which will be made available to jobs ran inside the workflow.
type: dict
execution_environment:
description:
- Execution Environment to use for the WFJT.
type: str
organization:
description:
- Organization the workflow job template exists in.
@ -666,7 +662,6 @@ def main():
description=dict(),
extra_vars=dict(type='dict'),
organization=dict(),
execution_environment=dict(),
survey_spec=dict(type='dict', aliases=['survey']),
survey_enabled=dict(type='bool'),
allow_simultaneous=dict(type='bool'),
@ -713,10 +708,6 @@ def main():
organization_id = module.resolve_name_to_id('organizations', organization)
search_fields['organization'] = new_fields['organization'] = organization_id
ee = module.params.get('execution_environment')
if ee:
new_fields['execution_environment'] = module.resolve_name_to_id('execution_environments', ee)
# Attempt to look up an existing item based on the provided data
existing_item = module.get_one('workflow_job_templates', name_or_id=name, **{'data': search_fields})