Commit dc0515a8 by Michael DeHaan

Revert "for #2196 now gruopby module invalidates host cached variables so they…

Revert "for #2196 now gruopby module invalidates host cached variables so they can be reevaluated with new groups"

This reverts commit 2d86671a.
parent 43ce2caa
...@@ -71,7 +71,6 @@ class ActionModule(object): ...@@ -71,7 +71,6 @@ class ActionModule(object):
inv_group = ansible.inventory.Group(name=group) inv_group = ansible.inventory.Group(name=group)
inventory.add_group(inv_group) inventory.add_group(inv_group)
for host in hosts: for host in hosts:
del self.runner.inventory._vars_per_host[host]
inv_host = inventory.get_host(host) inv_host = inventory.get_host(host)
if not inv_host: if not inv_host:
inv_host = ansible.inventory.Host(name=host) inv_host = ansible.inventory.Host(name=host)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment