tape: change changer-drive-id to changer-drivenum

because it changed in the config

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2021-01-28 12:59:55 +01:00 committed by Dietmar Maurer
parent 4be4736603
commit 627d000098
3 changed files with 6 additions and 6 deletions

View File

@ -299,11 +299,11 @@ configuration entry::
If you have a tape library, you also need to set the associated If you have a tape library, you also need to set the associated
changer device:: changer device::
# proxmox-tape drive update mydrive --changer sl3 --changer-drive-id 0 # proxmox-tape drive update mydrive --changer sl3 --changer-drivenum 0
The ``--changer-drive-id`` is only necessary if the tape library The ``--changer-drivenum`` is only necessary if the tape library
includes more than one drive (The changer status command lists all includes more than one drive (The changer status command lists all
drive IDs). drivenums).
You can show the final configuration with:: You can show the final configuration with::
@ -318,7 +318,7 @@ You can show the final configuration with::
│ changer │ sl3 │ │ changer │ sl3 │
└─────────┴────────────────────────────────┘ └─────────┴────────────────────────────────┘
.. NOTE:: The ``changer-drive-id`` value 0 is not stored in the .. NOTE:: The ``changer-drivenum`` value 0 is not stored in the
configuration, because that is the default. configuration, because that is the default.
To list all configured drives use:: To list all configured drives use::

View File

@ -224,7 +224,7 @@ pub fn update_drive(
data.changer_drivenum = None; data.changer_drivenum = None;
} else { } else {
if data.changer.is_none() { if data.changer.is_none() {
bail!("Option 'changer-drive-id' requires option 'changer'."); bail!("Option 'changer-drivenum' requires option 'changer'.");
} }
data.changer_drivenum = Some(changer_drivenum); data.changer_drivenum = Some(changer_drivenum);
} }

View File

@ -165,7 +165,7 @@ fn get_config(
.column(ColumnConfig::new("name")) .column(ColumnConfig::new("name"))
.column(ColumnConfig::new("path")) .column(ColumnConfig::new("path"))
.column(ColumnConfig::new("changer")) .column(ColumnConfig::new("changer"))
.column(ColumnConfig::new("changer-drive-id")) .column(ColumnConfig::new("changer-drivenum"))
; ;
format_and_print_result_full(&mut data, &info.returns, &output_format, &options); format_and_print_result_full(&mut data, &info.returns, &output_format, &options);