summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2018-06-30 13:36:46 +0300
committerLars Wirzenius <liw@liw.fi>2018-06-30 13:36:46 +0300
commit4f498e15742d202741cda0b313f977f276ae9e28 (patch)
tree187a2fafbbb585a4595f1555585c7309b1df3f3d
parent84dd1af404a948fc4adf5b44a70317eb2d7b04a5 (diff)
downloadhetznertool-4f498e15742d202741cda0b313f977f276ae9e28.tar.gz
Fix: flush output before coping zone file to ns1
-rwxr-xr-xhetznertool1
1 files changed, 1 insertions, 0 deletions
diff --git a/hetznertool b/hetznertool
index 8b22cb5..f611acb 100755
--- a/hetznertool
+++ b/hetznertool
@@ -252,6 +252,7 @@ $ORIGIN h.qvarnlabs.eu.
for context, server, addr in zone:
name = zone.servername(context, server)
f.write('{} IN A {}\n'.format(name, addr))
+ f.flush()
self.kick_bind9()
def increment_serial(self):