]> git.proxmox.com Git - proxmox-backup.git/commit
api daemons: fix sending log-reopen command
authorDominik Csapak <d.csapak@proxmox.com>
Mon, 11 Oct 2021 12:14:32 +0000 (14:14 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 11 Oct 2021 12:35:50 +0000 (14:35 +0200)
commit75442e813ec30a7377815999998681bd27231ada
tree801b0173242ace2cb3ccb3a3d7131629a8288794
parent853c55a0494844f632c379355a1ef2016b2459d1
api daemons: fix sending log-reopen command

send_command serializes everything so it cannot be used to send a
raw, optimized command. Normally that means we get an error like
> 'unable to parse parameters (expected json object)'
when used that way.

Switch over to send_raw_command which does not re-serializes the
command.

Fixes: 45b8a032 ("refactor send_command")
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/bin/proxmox-backup-proxy.rs