def find_service_by_type(cluster, service_type):
    """
    Finds and returns service of the given type

    @type   cluster: ApiCluster
    @param  cluster: The cluster whose services are checked
    @type   service_type: str
    @param  service_type: the service type to look for
    @return ApiService or None if not found
    """
    for service in cluster.get_all_services():
        if service.type == service_type:
            return service
    return None