proxmox-tape: fix clean api call
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
4c4e5c2b1e
commit
0320deb0a9
|
@ -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?;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue