proxmox-tape: fix clean api call

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2021-03-24 14:10:15 +01:00 committed by Dietmar Maurer
parent 4c4e5c2b1e
commit 0320deb0a9
1 changed files with 2 additions and 2 deletions

View File

@ -784,8 +784,8 @@ async fn clean_drive(mut param: Value) -> Result<(), Error> {
let mut client = connect_to_localhost()?; let mut client = connect_to_localhost()?;
let path = format!("api2/json/tape/drive/{}/clean-drive", drive); let path = format!("api2/json/tape/drive/{}/clean", drive);
let result = client.post(&path, Some(param)).await?; let result = client.put(&path, Some(param)).await?;
view_task_result(&mut client, result, &output_format).await?; view_task_result(&mut client, result, &output_format).await?;