From: Peter Palfrader Date: Thu, 1 Mar 2018 19:47:00 +0000 (+0100) Subject: clean up old/obsolete code that was broken and has been commented out since forever X-Git-Tag: userdir-ldap-0.3.93~19 X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fuserdir-ldap.git;a=commitdiff_plain;h=90eb80d8a576cd18bee82047147117683c5a405d clean up old/obsolete code that was broken and has been commented out since forever --- diff --git a/ud-generate b/ud-generate index cf49f0f..a787dfa 100755 --- a/ud-generate +++ b/ud-generate @@ -966,29 +966,6 @@ def GenZoneRecords(host_attrs, File): for Line in ExtractDNSInfo(x): F.write(Line + "\n") - # this would write sshfp lines for services on machines - # but we can't yet, since some are cnames and we'll make - # an invalid zonefile - # - # for i in x[1].get("purpose", []): - # m = PurposeHostField.match(i) - # if m: - # m = m.group(1) - # # we ignore [[*..]] entries - # if m.startswith('*'): - # continue - # if m.startswith('-'): - # m = m[1:] - # if m: - # if not m.endswith(HostDomain): - # continue - # if not m.endswith('.'): - # m = m + "." - # for Line in DNSInfo: - # if isSSHFP.match(Line): - # Line = "%s\t%s" % (m, Line) - # F.write(Line + "\n") - # Oops, something unspeakable happened. except: Die(File, F, None)