1
0
mirror of https://github.com/github/octodns.git synced 2024-05-11 05:55:00 +00:00

Include zone name in the header

This commit is contained in:
Ross McFarland
2018-06-01 21:05:30 -07:00
parent 36b67b8b7a
commit 50e1ce3881

View File

@@ -69,11 +69,13 @@ class EtcHostsProvider(BaseProvider):
filename = '{}hosts'.format(join(self.directory, desired.name))
self.log.info('_apply: filename=%s', filename)
with open(filename, 'w') as fh:
fh.write('########################################\n')
fh.write('##################################################\n')
fh.write('# octoDNS ')
fh.write(self.id)
fh.write(' ')
fh.write(desired.name)
fh.write('\n')
fh.write('########################################\n\n')
fh.write('##################################################\n\n')
if values:
fh.write('## A & AAAA\n\n')
for fqdn, value in sorted(values.items()):