From 699f344e17e029302af0d5636d6e02e6b8d3dd4c Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Thu, 5 Nov 2015 15:24:20 -0500 Subject: [PATCH] fixed append to add --- lib/ansible/inventory/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/inventory/__init__.py b/lib/ansible/inventory/__init__.py index a984a99ec1..2b9a5569fe 100644 --- a/lib/ansible/inventory/__init__.py +++ b/lib/ansible/inventory/__init__.py @@ -257,7 +257,7 @@ class Inventory(object): for p in patterns: # avoid resolving a pattern that is a plain host if p in self._hosts_cache: - hosts.append(self.get_host(p)) + hosts.add(self.get_host(p)) else: that = self._match_one_pattern(p) if p.startswith("!"):