src/api2/admin/datastore.rs - download_file: use BACKUP_ARCHIVE_NAME_SCHEMA for file-name

This commit is contained in:
Dietmar Maurer 2020-01-23 13:49:30 +01:00
parent a92830dc39
commit 4191018c79

View File

@ -557,10 +557,7 @@ pub const API_METHOD_DOWNLOAD_FILE: ApiMethod = ApiMethod::new(
("backup-type", false, &BACKUP_TYPE_SCHEMA),
("backup-id", false, &BACKUP_ID_SCHEMA),
("backup-time", false, &BACKUP_TIME_SCHEMA),
("file-name", false, &StringSchema::new("Raw file name.")
.format(&FILENAME_FORMAT)
.schema()
),
("file-name", false, &BACKUP_ARCHIVE_NAME_SCHEMA),
]),
)
);