public inbox for pbs-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: "Fabian Grünbichler" <f.gruenbichler@proxmox.com>
To: Proxmox Backup Server development discussion
	<pbs-devel@lists.proxmox.com>
Subject: [pbs-devel] applied: [PATCH proxmox-backup] proxmox-tape: use correct api call for 'load-media-from-slot'
Date: Mon, 23 May 2022 16:15:09 +0200	[thread overview]
Message-ID: <1653315298.7rb2wfdzw0.astroid@nora.none> (raw)
In-Reply-To: <20220523094116.1567435-1-d.csapak@proxmox.com>

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
> 
> 
> 




      reply	other threads:[~2022-05-23 14:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-23  9:41 [pbs-devel] " Dominik Csapak
2022-05-23 14:15 ` Fabian Grünbichler [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1653315298.7rb2wfdzw0.astroid@nora.none \
    --to=f.gruenbichler@proxmox.com \
    --cc=pbs-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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