fix: 修复更新账号时secret不正确导致更新失败的问题

pull/9425/head
Bai 2 years ago committed by Jiangjie.Bai
parent 55de785947
commit d2ae6642eb

@ -92,6 +92,9 @@ class BaseAccount(JMSOrgBaseModel):
else:
return ''
if not public_key:
return ''
public_key_obj = sshpubkeys.SSHKey(public_key)
fingerprint = public_key_obj.hash_md5()
return fingerprint

Loading…
Cancel
Save