From 2641f70e47774e935c64a3c707c51806203bacd7 Mon Sep 17 00:00:00 2001 From: Abhijit Menon-Sen Date: Wed, 19 Aug 2015 10:46:08 +0530 Subject: [PATCH] Reset self._groups_cache in refresh_inventory --- lib/ansible/inventory/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ansible/inventory/__init__.py b/lib/ansible/inventory/__init__.py index c0b93cc07ca..5a06f5275f7 100644 --- a/lib/ansible/inventory/__init__.py +++ b/lib/ansible/inventory/__init__.py @@ -672,6 +672,7 @@ class Inventory(object): self._vars_per_host = {} self._vars_per_group = {} self._groups_list = {} + self._groups_cache = {} self.groups = [] self.parse_inventory(self.host_list)