s3_listener.py 文件源码

python
阅读 28 收藏 0 点赞 0 评论 0

项目:localstack 作者: localstack 项目源码 文件源码
def set_lifecycle(bucket_name, lifecycle):
    # TODO: check if bucket exists, otherwise return 404-like error
    if isinstance(to_str(lifecycle), six.string_types):
        lifecycle = xmltodict.parse(lifecycle)
    BUCKET_LIFECYCLE[bucket_name] = lifecycle
    response = Response()
    response.status_code = 200
    return response
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号