misc.py 文件源码

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

项目:warboard 作者: dogsbodytech 项目源码 文件源码
def to_uuid(string):
    """
    Mirroring the jinja filter implemented in ansible

    Input a string. Returns the uuid ansible would generate as a string.
    """
    return str(uuid.uuid5(uuid.UUID('361E6D51-FAEC-444A-9079-341386DA8E2E'), string.encode('utf-8')))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号