mirror of
https://github.com/ansible/awx.git
synced 2026-05-08 01:47:35 -02:30
Remove EE from the workflow job template collection module
This commit is contained in:
committed by
Shane McDonald
parent
85bb4e976f
commit
6c1ba03235
@@ -47,10 +47,6 @@ options:
|
|||||||
description:
|
description:
|
||||||
- Variables which will be made available to jobs ran inside the workflow.
|
- Variables which will be made available to jobs ran inside the workflow.
|
||||||
type: dict
|
type: dict
|
||||||
execution_environment:
|
|
||||||
description:
|
|
||||||
- Execution Environment to use for the WFJT.
|
|
||||||
type: str
|
|
||||||
organization:
|
organization:
|
||||||
description:
|
description:
|
||||||
- Organization the workflow job template exists in.
|
- Organization the workflow job template exists in.
|
||||||
@@ -666,7 +662,6 @@ def main():
|
|||||||
description=dict(),
|
description=dict(),
|
||||||
extra_vars=dict(type='dict'),
|
extra_vars=dict(type='dict'),
|
||||||
organization=dict(),
|
organization=dict(),
|
||||||
execution_environment=dict(),
|
|
||||||
survey_spec=dict(type='dict', aliases=['survey']),
|
survey_spec=dict(type='dict', aliases=['survey']),
|
||||||
survey_enabled=dict(type='bool'),
|
survey_enabled=dict(type='bool'),
|
||||||
allow_simultaneous=dict(type='bool'),
|
allow_simultaneous=dict(type='bool'),
|
||||||
@@ -713,10 +708,6 @@ def main():
|
|||||||
organization_id = module.resolve_name_to_id('organizations', organization)
|
organization_id = module.resolve_name_to_id('organizations', organization)
|
||||||
search_fields['organization'] = new_fields['organization'] = organization_id
|
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
|
# 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})
|
existing_item = module.get_one('workflow_job_templates', name_or_id=name, **{'data': search_fields})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user