add fsync parameter to replace_file

Depend on proxmox 0.15.0

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
This commit is contained in:
Dietmar Maurer 2021-10-20 14:55:15 +02:00
parent d65b2df750
commit 6aa28f0a08
2 changed files with 2 additions and 2 deletions

View File

@ -24,5 +24,5 @@ serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
url = "2.1"
proxmox = "0.14.0"
proxmox = "0.15.0"
proxmox-time = "1"

View File

@ -62,7 +62,7 @@ fn replace_auth_state(
let options = CreateOptions::new().perm(mode);
let raw = serde_json::to_string_pretty(data)?;
replace_file(path, raw.as_bytes(), options)?;
replace_file(path, raw.as_bytes(), options, false)?;
Ok(())
}