mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
Avoid erroring on host group confusion in keyed groups (#54099)
This commit is contained in:
committed by
Brian Coca
parent
54be769e8d
commit
f2f11341a3
@@ -428,7 +428,7 @@ class Constructable(object):
|
||||
for bare_name in new_raw_group_names:
|
||||
gname = self._sanitize_group_name('%s%s%s' % (prefix, sep, bare_name))
|
||||
result_gname = self.inventory.add_group(gname)
|
||||
self.inventory.add_child(result_gname, host)
|
||||
self.inventory.add_host(host, result_gname)
|
||||
|
||||
if raw_parent_name:
|
||||
parent_name = self._sanitize_group_name(raw_parent_name)
|
||||
|
||||
Reference in New Issue
Block a user