Commit 21b4212f by jctanner Committed by James Tanner

Merge pull request #5517 from lichesser/fix_set_depreciation_warning

Fixes #5513. set is built-in since 2.4 and deprecated since 2.6
parent f77e7446
...@@ -21,7 +21,6 @@ import fnmatch ...@@ -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): ...@@ -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("&", "")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment