ipa-client-install: remove fsync in do_nsupdate()

No need to flush buffers on the nsupdate file as it will get
removed at the end of the function.

Related: https://pagure.io/freeipa/issue/8402
Signed-off-by: François Cami <fcami@redhat.com>
Reviewed-By: Florence Blanc-Renaud <frenaud@redhat.com>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
This commit is contained in:
François Cami 2021-04-08 08:31:19 +01:00 committed by Alexander Bokovoy
parent 1439764c0e
commit 72f44b5596

View File

@ -1363,7 +1363,6 @@ def do_nsupdate(update_txt):
with open(UPDATE_FILE, "w") as f:
f.write(update_txt)
ipautil.flush_sync(f)
result = False
try: