samba_dnsupdate: flush dns update cache file after write
authorJoe Guo <joeg@catalyst.net.nz>
Wed, 8 May 2019 05:21:27 +0000 (17:21 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 10 May 2019 08:19:16 +0000 (08:19 +0000)
commit165025a56e14eca51f3db366300fe625d1f521b5
treee99991ccf62bc4a056c3cf92a729a7261e11046b
parent5733f678c8ef364f52ca6a144097ae2af275b0ec
samba_dnsupdate: flush dns update cache file after write

While running samba python tests with `coverage.py`, `make test` failed
to start ad_dc env since dns_update_cache stays empty.
Flush the file after write fix the issue.

Signed-off-by: Joe Guo <joeg@catalyst.net.nz>
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
source4/scripting/bin/samba_dnsupdate