From 11fbfc20638c8bcb3b7bce4b0cf8ee900a418290 Mon Sep 17 00:00:00 2001 From: Lila Yasin Date: Mon, 16 Jan 2023 09:36:07 -0500 Subject: [PATCH] added fix for preserve existing children issue. (#13374) * added fix for preserve existing children issue. * Modified line 131 to call actual parm name. * Removed line 132 after updating. --- awx_collection/plugins/modules/group.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx_collection/plugins/modules/group.py b/awx_collection/plugins/modules/group.py index 973fb7744d..c91bf164d9 100644 --- a/awx_collection/plugins/modules/group.py +++ b/awx_collection/plugins/modules/group.py @@ -128,7 +128,7 @@ def main(): description = module.params.get('description') state = module.params.pop('state') preserve_existing_hosts = module.params.get('preserve_existing_hosts') - preserve_existing_children = module.params.get('preserve_existing_groups') + preserve_existing_children = module.params.get('preserve_existing_children') variables = module.params.get('variables') # Attempt to look up the related items the user specified (these will fail the module if not found)