Returns true if the passed glob matches the id

def match(tgt, opts=None):
    '''
    Returns true if the passed glob matches the id
    '''
    if not opts:
        opts = __opts__
    if not isinstance(tgt, six.string_types):
        return False

    return fnmatch.fnmatch(opts['id'], tgt)