def METHOD_NAME(ret):
    nonlocal onion_service
    if ret:
        onion_service = ret
    if tid in State.tenants:
        State.tenants[tid].ephs = onion_service
    log.err('Initialization of onion-service %s completed.', onion_service.hostname, tid=tid)