def override_timeout(timeout, action):
    """
    Override the default timeout for `forcemerge`, `snapshot`, and `sync_flush`
    operations if the default value of ``30`` is provided.

    :arg timeout: Number of seconds before the client will timeout.
    :arg action: The `action` to be performed.
    """
    retval = timeout
    if action in ['forcemerge', 'snapshot', 'sync_flush']:
        # Check for default timeout of 30s
        if timeout == 30:
            if ['forcemerge', 'snapshot'] in action:
                retval = 21600
            elif action == 'sync_flush':
                retval = 180
            logger.info(
                'Overriding default connection timeout for {0} action.  '
                'New timeout: {1}'.format(action.upper(),timeout)
            )
    return retval
dataset/ETHPy150Open elastic/curator/curator/utils.py/override_timeout/swapped operands of `in`