'Is target_name covered by a wildcard?
:param names: server aliases
:type names: `collections.Iterable` of `str`
:param str target_name: name to compare with wildcards
:returns: True if target_name is covered by a wildcard,
otherwise, False
:rtype: bool'

def included_in_wildcard(self, names, target_name):

    target_name = target_name.lower()
    for name in names:
        name = name.lower()
        if (('[' not in name) and fnmatch.fnmatch(target_name, name)):
            return True
    return False
