1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

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 os
import re import re
import subprocess import subprocess
from sets import Set
import ansible.constants as C import ansible.constants as C
from ansible.inventory.ini import InventoryParser from ansible.inventory.ini import InventoryParser
@ -252,7 +251,7 @@ class Inventory(object):
""" Get all host names matching the pattern """ """ Get all host names matching the pattern """
hosts = [] hosts = []
hostnames = Set() hostnames = set()
# ignore any negative checks here, this is handled elsewhere # ignore any negative checks here, this is handled elsewhere
pattern = pattern.replace("!","").replace("&", "") pattern = pattern.replace("!","").replace("&", "")