

def get_container_size(self, env):
    rv = 0
    container_info = get_container_info(env, self.app, swift_source='RL')
    if isinstance(container_info, dict):
        rv = container_info.get('object_count', container_info.get('container_size', 0))
    return rv

dataset/ETHPy150Open openstack/swift/swift/common/middleware/ratelimit.py RateLimitMiddleware.get_container_size/original