def get_remote_client(req):
    # remote host for zeus
    client = req.headers.get('x-cluster-client-ip')
    if not client and req.headers in 'x-forwarded-for':
        # remote host for other lbs
        client = req.headers['x-forwarded-for'].split(',')[0].strip()
    if not client:
        client = req.remote_addr
    return client
dataset/ETHPy150Open openstack/swift/swift/common/utils.py/get_remote_client/swapped operands of `in`