Fill in the new execution environment collection module

as well as changes to other ones that need to be able to attach EEs.
This commit is contained in:
Jeff Bradberry
2020-11-19 14:06:32 -05:00
committed by Shane McDonald
parent c1133b3f6d
commit 6d935f740c
8 changed files with 91 additions and 29 deletions

View File

@@ -177,6 +177,7 @@ def main():
enabled_value=dict(),
host_filter=dict(),
credential=dict(),
execution_environment=dict(),
organization=dict(),
overwrite=dict(type='bool'),
overwrite_vars=dict(type='bool'),
@@ -203,6 +204,7 @@ def main():
organization = module.params.get('organization')
source_script = module.params.get('source_script')
credential = module.params.get('credential')
ee = module.params.get('execution_environment')
source_project = module.params.get('source_project')
state = module.params.get('state')
@@ -254,6 +256,8 @@ def main():
# Attempt to look up the related items the user specified (these will fail the module if not found)
if credential is not None:
inventory_source_fields['credential'] = module.resolve_name_to_id('credentials', credential)
if ee is not None:
inventory_source_fields['execution_environment'] = module.resolve_name_to_id('execution_environments', ee)
if source_project is not None:
inventory_source_fields['source_project'] = module.resolve_name_to_id('projects', source_project)
if source_script is not None: