mirror of
https://github.com/retspen/webvirtcloud
synced 2024-12-25 15:45:23 +00:00
Fix pep8 errors
This commit is contained in:
parent
ee2b97d62f
commit
e1d3be17f1
3 changed files with 3 additions and 3 deletions
|
@ -9,4 +9,4 @@ register = template.Library()
|
||||||
def ssh_to_fingerprint(line):
|
def ssh_to_fingerprint(line):
|
||||||
key = base64.b64decode(line.strip().split()[1].encode('ascii'))
|
key = base64.b64decode(line.strip().split()[1].encode('ascii'))
|
||||||
fp_plain = hashlib.md5(key).hexdigest()
|
fp_plain = hashlib.md5(key).hexdigest()
|
||||||
return ':'.join(a+b for a, b in zip(fp_plain[::2], fp_plain[1::2]))
|
return ':'.join(a + b for a, b in zip(fp_plain[::2], fp_plain[1::2]))
|
||||||
|
|
Loading…
Reference in a new issue