Revert "Moved the _inventory.clear_group_dict_cache() from creating a group w… (#17766)"

This reverts commit a36ac1ad1b.
This commit is contained in:
James Cammarata 2016-11-18 14:28:59 -06:00
parent a36ac1ad1b
commit ff0b525608

View file

@ -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