use proxmox 0.1.25, use new EnumEntry feature

This commit is contained in:
Dietmar Maurer committed 2020-04-29 13:01:24 +02:00
1 parent acb428cdec
commit bc0d03885c
8 files changed
+79 -114

No files matched your search

+3 -1
View File
@@ -1852,7 +1852,9 @@ fn key_mgmt_cli() -> CliCommandMap {
const KDF_SCHEMA: Schema =
StringSchema::new("Key derivation function. Choose 'none' to store the key unecrypted.")
.format(&ApiStringFormat::Enum(&["scrypt", "none"]))
.format(&ApiStringFormat::Enum(&[
EnumEntry::new("scrypt", "SCrypt"),
EnumEntry::new("none", "Do not encrypt the key")]))
.default("scrypt")
.schema();