Merge "Fix sshfp record printing"
This commit is contained in:
commit
cb34f3a081
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user