From dc0515a88a8aa78630f0b7118563c7a23c898839 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Sat, 2 Mar 2013 10:21:36 -0500 Subject: [PATCH] Revert "for #2196 now gruopby module invalidates host cached variables so they can be reevaluated with new groups" This reverts commit 2d86671aa5b0fcdabe35f88fc5e09197acd3f17d. --- lib/ansible/runner/action_plugins/group_by.py | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/ansible/runner/action_plugins/group_by.py b/lib/ansible/runner/action_plugins/group_by.py index 8d983c419d..f6a9f0bc09 100644 --- a/lib/ansible/runner/action_plugins/group_by.py +++ b/lib/ansible/runner/action_plugins/group_by.py @@ -71,7 +71,6 @@ class ActionModule(object): inv_group = ansible.inventory.Group(name=group) inventory.add_group(inv_group) for host in hosts: - del self.runner.inventory._vars_per_host[host] inv_host = inventory.get_host(host) if not inv_host: inv_host = ansible.inventory.Host(name=host)