tape: rename CHANGER_ID_SCHEMA to CHANGER_NAME_SCHEMA

This commit is contained in:
Dietmar Maurer
2020-12-13 09:22:08 +01:00
parent 49c965a497
commit 7e1d4712b8
5 changed files with 17 additions and 17 deletions

View File

@ -15,7 +15,7 @@ pub const DRIVE_NAME_SCHEMA: Schema = StringSchema::new("Drive Identifier.")
.max_length(32)
.schema();
pub const CHANGER_ID_SCHEMA: Schema = StringSchema::new("Tape Changer Identifier.")
pub const CHANGER_NAME_SCHEMA: Schema = StringSchema::new("Tape Changer Identifier.")
.format(&PROXMOX_SAFE_ID_FORMAT)
.min_length(3)
.max_length(32)
@ -70,7 +70,7 @@ pub struct VirtualTapeDrive {
schema: LINUX_DRIVE_PATH_SCHEMA,
},
changer: {
schema: CHANGER_ID_SCHEMA,
schema: CHANGER_NAME_SCHEMA,
optional: true,
},
"changer-drive-id": {
@ -94,7 +94,7 @@ pub struct LinuxTapeDrive {
#[api(
properties: {
name: {
schema: CHANGER_ID_SCHEMA,
schema: CHANGER_NAME_SCHEMA,
},
path: {
schema: SCSI_CHANGER_PATH_SCHEMA,