proxmox-tape: change lookup_drive_name to extract_drive_name
in most uses, we want to remove the drive from the param afterwards where we don't, we already overwrite it with the result of this function this fixes some commands (like 'proxmox-tape read-label --drive foo') that failed with: parameter 'drive': duplicate parameter. Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
committed by
Dietmar Maurer
parent
96bcfb9b1f
commit
85cdc4f371
@ -214,7 +214,7 @@ async fn restore_key(
|
||||
) -> Result<(), Error> {
|
||||
|
||||
let (config, _digest) = config::drive::config()?;
|
||||
param["drive"] = crate::lookup_drive_name(¶m, &config)?.into();
|
||||
param["drive"] = crate::extract_drive_name(&mut param, &config)?.into();
|
||||
|
||||
if !tty::stdin_isatty() {
|
||||
bail!("no password input mechanism available");
|
||||
|
Reference in New Issue
Block a user