Merge "Fix sshfp record printing"

This commit is contained in:
Zuul 2021-03-09 00:11:20 +00:00 committed by Gerrit Code Review
commit cb34f3a081

View File

@ -38,9 +38,10 @@ def generate_sshfp_records(hostname, ip, local):
ret = ''
first = True
dns_hostname = hostname.split('.')[0]
for f in fingerprints:
ret += '%s%s\t\tIN\tSSHFP\t%s %s %s' % \
("\n" if not first else '', hostname, f[0], f[1], f[2])
("\n" if not first else '', dns_hostname, f[0], f[1], f[2])
first = False
return ret