From 262ba0460a55e3b679dbb194e80eb9e10d4e86cd Mon Sep 17 00:00:00 2001 From: Serge van Ginderachter Date: Wed, 5 Mar 2014 16:23:34 +0100 Subject: [PATCH] inventory directory parser: add hosts to group non-recursively --- lib/ansible/inventory/dir.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/inventory/dir.py b/lib/ansible/inventory/dir.py index 46997d9be8..9b53bd17c6 100644 --- a/lib/ansible/inventory/dir.py +++ b/lib/ansible/inventory/dir.py @@ -71,7 +71,7 @@ class InventoryDirectory(object): # note: depth numbers on duplicates may be bogus for k, v in group.get_variables().iteritems(): self.groups[name].set_variable(k, v) - for host in group.get_hosts(): + for host in group.hosts: if host.name not in self.hosts: self.hosts[host.name] = host else: