write extra line break
This resolves an error with nsd, that expects a final linebreak.
This commit is contained in:
parent
5e0cac8118
commit
29927fd050
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue