def get_running_executions():
    executions = get_blueprints_manager().executions_list(
            is_include_system_workflows=True).items
    running_executions = []
    for execution in executions:
        if models.Execution.END_STATES not in execution.status:
            running_executions.append({
                'id': execution.id,
                'status': execution.status,
                'deployment_id': execution.deployment_id,
                'workflow_id': execution.workflow_id
            })

    return running_executions
dataset/ETHPy150Open cloudify-cosmo/cloudify-manager/rest-service/manager_rest/maintenance.py/get_running_executions/swapped operands of `not in`