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:
parent
f77e744666
commit
21b4212ff5
1 changed files with 1 additions and 2 deletions
|
@ -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…
Reference in a new issue