def bypass(result, func, *args, **kw):
    d = maybeDeferred(func, *args, **kw)
    d.addErrback(logError)
    d.addBoth(lambda ignored: result)
    return d
Perform the function, but fire with the result from the previous Deferred.
dataset/ETHPy150Open ClusterHQ/flocker/benchmark/_driver.py/bypass