public inbox for pbs-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pbs-devel] [PATCH proxmox-backup] proxmox-tape: use correct api call for 'load-media-from-slot'
@ 2022-05-23  9:41 Dominik Csapak
  2022-05-23 14:15 ` [pbs-devel] applied: " Fabian Grünbichler
  0 siblings, 1 reply; 2+ messages in thread
From: Dominik Csapak @ 2022-05-23  9:41 UTC (permalink / raw)
  To: pbs-devel

it's a 'post' api call, not 'put'

reported here:
https://forum.proxmox.com/threads/lto8.109946/
and here:
https://forum.proxmox.com/threads/cant-clear-tape.86454/

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
---
it seems i did not get around to sending that patch a year ago, and i forgot...
 src/bin/proxmox-tape.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bin/proxmox-tape.rs b/src/bin/proxmox-tape.rs
index af39556e..94114a6e 100644
--- a/src/bin/proxmox-tape.rs
+++ b/src/bin/proxmox-tape.rs
@@ -292,7 +292,7 @@ async fn load_media_from_slot(mut param: Value) -> Result<(), Error> {
     let client = connect_to_localhost()?;
 
     let path = format!("api2/json/tape/drive/{}/load-slot", drive);
-    client.put(&path, Some(param)).await?;
+    client.post(&path, Some(param)).await?;
 
     Ok(())
 }
-- 
2.30.2





^ permalink raw reply	[flat|nested] 2+ messages in thread

* [pbs-devel] applied: [PATCH proxmox-backup] proxmox-tape: use correct api call for 'load-media-from-slot'
  2022-05-23  9:41 [pbs-devel] [PATCH proxmox-backup] proxmox-tape: use correct api call for 'load-media-from-slot' Dominik Csapak
@ 2022-05-23 14:15 ` Fabian Grünbichler
  0 siblings, 0 replies; 2+ messages in thread
From: Fabian Grünbichler @ 2022-05-23 14:15 UTC (permalink / raw)
  To: Proxmox Backup Server development discussion

On May 23, 2022 11:41 am, Dominik Csapak wrote:
> it's a 'post' api call, not 'put'
> 
> reported here:
> https://forum.proxmox.com/threads/lto8.109946/
> and here:
> https://forum.proxmox.com/threads/cant-clear-tape.86454/
> 
> Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
> ---
> it seems i did not get around to sending that patch a year ago, and i forgot...
>  src/bin/proxmox-tape.rs | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/bin/proxmox-tape.rs b/src/bin/proxmox-tape.rs
> index af39556e..94114a6e 100644
> --- a/src/bin/proxmox-tape.rs
> +++ b/src/bin/proxmox-tape.rs
> @@ -292,7 +292,7 @@ async fn load_media_from_slot(mut param: Value) -> Result<(), Error> {
>      let client = connect_to_localhost()?;
>  
>      let path = format!("api2/json/tape/drive/{}/load-slot", drive);
> -    client.put(&path, Some(param)).await?;
> +    client.post(&path, Some(param)).await?;
>  
>      Ok(())
>  }
> -- 
> 2.30.2
> 
> 
> 
> _______________________________________________
> pbs-devel mailing list
> pbs-devel@lists.proxmox.com
> https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel
> 
> 
> 




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-05-23 14:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-23  9:41 [pbs-devel] [PATCH proxmox-backup] proxmox-tape: use correct api call for 'load-media-from-slot' Dominik Csapak
2022-05-23 14:15 ` [pbs-devel] applied: " Fabian Grünbichler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal