mirror of
https://github.com/ansible/awx.git
synced 2026-01-09 23:12:08 -03:30
Remove EE from the workflow job template collection module
This commit is contained in:
parent
85bb4e976f
commit
6c1ba03235
@ -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})
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user