mirror of
https://github.com/ansible/awx.git
synced 2026-02-22 05:30:18 -03:30
Make sure project updates run in default EE (#9172)
* Make sure project updates run in default EE * Remove project execution_environment field from collection
This commit is contained in:
committed by
Shane McDonald
parent
8ab7745e3a
commit
c7e0e30f93
@@ -106,10 +106,6 @@ options:
|
||||
description:
|
||||
- Default Execution Environment to use for jobs relating to the project.
|
||||
type: str
|
||||
execution_environment:
|
||||
description:
|
||||
- Execution Environment to use for project updates.
|
||||
type: str
|
||||
organization:
|
||||
description:
|
||||
- Name of organization for project.
|
||||
@@ -248,7 +244,6 @@ def main():
|
||||
timeout=dict(type='int', default=0, aliases=['job_timeout']),
|
||||
custom_virtualenv=dict(),
|
||||
default_environment=dict(),
|
||||
execution_environment=dict(),
|
||||
organization=dict(),
|
||||
notification_templates_started=dict(type="list", elements='str'),
|
||||
notification_templates_success=dict(type="list", elements='str'),
|
||||
@@ -281,7 +276,6 @@ def main():
|
||||
timeout = module.params.get('timeout')
|
||||
custom_virtualenv = module.params.get('custom_virtualenv')
|
||||
default_ee = module.params.get('default_environment')
|
||||
ee = module.params.get('execution_environment')
|
||||
organization = module.params.get('organization')
|
||||
state = module.params.get('state')
|
||||
wait = module.params.get('wait')
|
||||
@@ -347,8 +341,6 @@ def main():
|
||||
project_fields['credential'] = credential
|
||||
if default_ee is not None:
|
||||
project_fields['default_environment'] = module.resolve_name_to_id('execution_environments', default_ee)
|
||||
if ee is not None:
|
||||
project_fields['execution_environment'] = module.resolve_name_to_id('execution_environments', ee)
|
||||
if allow_override is not None:
|
||||
project_fields['allow_override'] = allow_override
|
||||
if scm_type == '':
|
||||
|
||||
Reference in New Issue
Block a user