Merge pull request #5517 from lichesser/fix_set_depreciation_warning

Fixes #5513. set is built-in since 2.4 and deprecated since 2.6
pull/5536/head
jctanner 11 years ago committed by James Tanner
parent f77e744666
commit 21b4212ff5

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

Loading…
Cancel
Save