From 29927fd0503a4fb22c6b52195067fd6ab60456a5 Mon Sep 17 00:00:00 2001 From: Gibheer Date: Thu, 27 Feb 2020 19:01:33 +0100 Subject: [PATCH] write extra line break This resolves an error with nsd, that expects a final linebreak. --- dim_output_bind | 1 + 1 file changed, 1 insertion(+) diff --git a/dim_output_bind b/dim_output_bind index ccb1302..b43ae8d 100644 --- a/dim_output_bind +++ b/dim_output_bind @@ -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)