mirror of
https://github.com/ansible/awx.git
synced 2026-04-11 04:59:22 -02:30
Update group.py
This commit is contained in:
@@ -170,7 +170,7 @@ def main():
|
|||||||
id_list.append(sub_obj['id'])
|
id_list.append(sub_obj['id'])
|
||||||
# Preserve existing objects
|
# Preserve existing objects
|
||||||
if (preserve_existing_hosts and relationship == 'hosts') or (preserve_existing_children and relationship == 'children'):
|
if (preserve_existing_hosts and relationship == 'hosts') or (preserve_existing_children and relationship == 'children'):
|
||||||
preserve_existing_check = module.get_endpoint(group['related'][relationship])
|
preserve_existing_check = module.get_all_endpoint(group['related'][relationship])
|
||||||
for sub_obj in preserve_existing_check['json']['results']:
|
for sub_obj in preserve_existing_check['json']['results']:
|
||||||
id_list.append(sub_obj['id'])
|
id_list.append(sub_obj['id'])
|
||||||
if id_list:
|
if id_list:
|
||||||
|
|||||||
Reference in New Issue
Block a user