utilities.py 文件源码

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

项目:insights-core 作者: RedHatInsights 项目源码 文件源码
def generate_container_id(container_name):
    # container id is a uuid in the namespace of the machine
    if not config["container_mode"]:
        return str(uuid.uuid5(uuid.UUID(generate_machine_id()), container_name.encode('utf8')))
    else:
        return container_name.encode('utf8')
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号