def _return(value, old_agent_version):
    ctx.returns(value)
    # Due to bug in celery:
    # https://github.com/celery/celery/issues/897
    if os.name == 'nt' and old_agent_version.startswith('3.2'):
        from celery import current_task
        try:
            from cloudify_agent.app import app
        except __HOLE__:
            from cloudify.celery import celery as app
        app.backend.mark_as_done(current_task.request.id, value)
dataset/ETHPy150Open cloudify-cosmo/cloudify-manager/resources/rest-service/cloudify/install_agent.py/_return