Revert "Moved the _inventory.clear_group_dict_cache() from creating a group w… (#17766)"
This reverts commit a36ac1ad1b
.
This commit is contained in:
parent
a36ac1ad1b
commit
ff0b525608
1 changed files with 0 additions and 4 deletions
|
@ -559,10 +559,6 @@ class StrategyBase:
|
|||
if group_name not in host.get_groups():
|
||||
new_group.add_host(real_host)
|
||||
changed = True
|
||||
|
||||
if changed:
|
||||
# clear cache of group dict, which is used in magic host variables
|
||||
self._inventory.clear_group_dict_cache()
|
||||
|
||||
return changed
|
||||
|
||||
|
|
Loading…
Reference in a new issue