'Find possible matches to the resource type and name.
Chain the results from the global and user registry to find
a match.'

def get_resource_info(self, resource_type, resource_name=None, registry_type=None, ignore=None):

    if (self.global_registry is not None):
        giter = self.global_registry.iterable_by(resource_type, resource_name)
    else:
        giter = []
    matches = itertools.chain(self.iterable_by(resource_type, resource_name), giter)
    for info in sorted(matches):
        try:
            match = info.get_resource_info(resource_type, resource_name)
        except exception.EntityNotFound:
            continue
        if ((registry_type is None) or isinstance(match, registry_type)):
            if ((ignore is not None) and (match == ignore)):
                continue
            if (match and (not match.user_resource) and (not isinstance(info, (TemplateResourceInfo, ClassResourceInfo)))):
                self._register_info([resource_type], info)
            return match
    raise exception.EntityNotFound(entity='Resource    Type', name=resource_type)
