correctly lock remote config
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
This commit is contained in:
parent
2bc1250c28
commit
4beb7d2dbe
@ -86,7 +86,7 @@ pub fn create_remote(
|
|||||||
password: String,
|
password: String,
|
||||||
) -> Result<(), Error> {
|
) -> Result<(), Error> {
|
||||||
|
|
||||||
let _lock = pbs_config::remote::config()?;
|
let _lock = pbs_config::remote::lock_config()?;
|
||||||
|
|
||||||
let (mut section_config, _digest) = pbs_config::remote::config()?;
|
let (mut section_config, _digest) = pbs_config::remote::config()?;
|
||||||
|
|
||||||
@ -185,7 +185,7 @@ pub fn update_remote(
|
|||||||
digest: Option<String>,
|
digest: Option<String>,
|
||||||
) -> Result<(), Error> {
|
) -> Result<(), Error> {
|
||||||
|
|
||||||
let _lock = pbs_config::remote::config()?;
|
let _lock = pbs_config::remote::lock_config()?;
|
||||||
|
|
||||||
let (mut config, expected_digest) = pbs_config::remote::config()?;
|
let (mut config, expected_digest) = pbs_config::remote::config()?;
|
||||||
|
|
||||||
@ -257,7 +257,7 @@ pub fn delete_remote(name: String, digest: Option<String>) -> Result<(), Error>
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let _lock = pbs_config::remote::config()?;
|
let _lock = pbs_config::remote::lock_config()?;
|
||||||
|
|
||||||
let (mut config, expected_digest) = pbs_config::remote::config()?;
|
let (mut config, expected_digest) = pbs_config::remote::config()?;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user