def find_template_by_name(context, vdc, name):
    template = vdc.findAvailableTemplate(
            VirtualMachineTemplatePredicates.name(name))
    if template:
        log.info("Found compatible template: %s" % template.getName())
    else:
        log.info("No compatible template found")

    return template
Finds the template with the given name
dataset/ETHPy150Open nacx/kahuna/kahuna/plugins/environment/cloud/compute.py/find_template_by_name