write extra line break

This resolves an error with nsd, that expects a final linebreak.
This commit is contained in:
Gibheer 2020-02-27 19:01:33 +01:00
parent 5e0cac8118
commit 29927fd050
1 changed files with 1 additions and 0 deletions

View File

@ -49,6 +49,7 @@ if __name__ == "__main__":
try:
with open(filepath, 'w+', 0644) as fp:
fp.write(output)
fp.write("\n")
except IOError as e:
print("could not write zone file '%s': %s" % (update['zone_name'], e))
sys.exit(-1)