src/api2/config: check digest

This commit is contained in:
Dietmar Maurer
2020-01-15 12:27:05 +01:00
parent 347834df25
commit 002a191abf
6 changed files with 35 additions and 7 deletions

View File

@ -85,7 +85,7 @@ pub const PASSWORD_FORMAT: ApiStringFormat =
ApiStringFormat::Pattern(&PASSWORD_REGEX);
pub const PVE_CONFIG_DIGEST_SCHEMA: Schema = StringSchema::new(r#"\
pub const PROXMOX_CONFIG_DIGEST_SCHEMA: Schema = StringSchema::new(r#"\
Prevent changes if current configuration file has different SHA256 digest.
This can be used to prevent concurrent modifications.
"#