diff --git a/awx_collection/plugins/modules/workflow_job_template.py b/awx_collection/plugins/modules/workflow_job_template.py index 8a4c5d75ec..7fc6b66cca 100644 --- a/awx_collection/plugins/modules/workflow_job_template.py +++ b/awx_collection/plugins/modules/workflow_job_template.py @@ -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})