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')))
评论列表
文章目录