Merge pull request #5517 from lichesser/fix_set_depreciation_warning

Fixes #5513. set is built-in since 2.4 and deprecated since 2.6
This commit is contained in:
jctanner
2014-01-06 17:07:31 -08:00
committed by James Tanner
parent f77e744666
commit 21b4212ff5

View File

@@ -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("&", "")