diff --git a/lib/ansible/inventory/__init__.py b/lib/ansible/inventory/__init__.py index 465d5a4b818..23af047a7d3 100644 --- a/lib/ansible/inventory/__init__.py +++ b/lib/ansible/inventory/__init__.py @@ -21,7 +21,6 @@ import fnmatch import os import re import subprocess -from sets import Set import ansible.constants as C from ansible.inventory.ini import InventoryParser @@ -252,7 +251,7 @@ class Inventory(object): """ Get all host names matching the pattern """ hosts = [] - hostnames = Set() + hostnames = set() # ignore any negative checks here, this is handled elsewhere pattern = pattern.replace("!","").replace("&", "")