mirror of
https://git.proxmox.com/git/proxmox
synced 2025-10-04 18:03:31 +00:00
api types: add missing conf to blob archive name mapping
Commit0d66acd3
("api types: introduce `BackupArchiveName` type") introduced a dedicated archive name api type to add rust type checking and bundle helpers to the api type. Since this, the backup archive name to server archive name mapping is handled by its parser. This however did not cover the `.conf` extension used for VM config files. Add the missing `.conf` to `.conf.blob` to the match statement and the test cases. Fixes:0d66acd3
("api types: introduce `BackupArchiveName` type") Reported-by: Stoiko Ivanov <s.ivanov@proxmox.com> Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
This commit is contained in:
parent
f1f8c65c70
commit
bfffbef9b2
@ -1841,6 +1841,7 @@ impl BackupArchiveName {
|
||||
Some("ppxar") => ArchiveType::DynamicIndex,
|
||||
Some("pcat1") => ArchiveType::DynamicIndex,
|
||||
Some("img") => ArchiveType::FixedIndex,
|
||||
Some("conf") => ArchiveType::Blob,
|
||||
Some("json") => ArchiveType::Blob,
|
||||
Some("key") => ArchiveType::Blob,
|
||||
Some("log") => ArchiveType::Blob,
|
||||
@ -1918,6 +1919,8 @@ mod tests {
|
||||
"/valid/rsa-encrypted.key.blob",
|
||||
"/valid/archive-name.log",
|
||||
"/valid/archive-name.log.blob",
|
||||
"/valid/qemu-server.conf",
|
||||
"/valid/qemu-server.conf.blob",
|
||||
];
|
||||
|
||||
for archive_name in valid_archive_names {
|
||||
|
Loading…
Reference in New Issue
Block a user