Rename group-to-group field to align with API

This commit is contained in:
AlanCoding
2020-03-24 19:45:23 -04:00
parent d37039a18a
commit d102b06474
2 changed files with 5 additions and 5 deletions

View File

@@ -47,7 +47,7 @@ options:
required: False
type: list
elements: str
groups:
children:
description:
- List of groups that should be nested inside in this group.
required: False
@@ -98,7 +98,7 @@ def main():
inventory=dict(required=True),
variables=dict(type='dict', required=False),
hosts=dict(type='list', elements='str'),
groups=dict(type='list', elements='str'),
children=dict(type='list', elements='str'),
state=dict(choices=['present', 'absent'], default='present'),
)
@@ -136,7 +136,7 @@ def main():
association_fields = {}
for resource, relationship in (('hosts', 'hosts'), ('groups', 'children')):
name_list = module.params.get(resource)
name_list = module.params.get(relationship)
if name_list is None:
continue
id_list = []