5
0
mirror of git://git.proxmox.com/git/pve-storage.git synced 2024-12-22 13:34:16 +03:00
Go to file
Dominik Csapak 14f99a1614 api: FileRestore: decode and return proper error of file-restore listing
since commit
ba690c40 ("file-restore: remove 'json-error' parameter from list_files")

in proxmox-backup, the file-restore binary will return the error as json
when called with '--output-format json' (which we do in PVE::PBSClient)

here, we assume that 'file-restore' will fail in that case, and we try
to use the return value as an array ref which fails, and the user never
sees the real error message.

To fix that, check the ref type of the return value and act accordingly

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2022-11-15 11:03:08 +01:00
debian bump common dependency to 7.2-4 2022-11-04 14:14:04 +01:00
PVE api: FileRestore: decode and return proper error of file-restore listing 2022-11-15 11:03:08 +01:00
test fix #4165: disk: SMART: add normalized field 2022-09-22 14:14:19 +02:00
udev-rbd rbd: fix #3969: add rbd dev paths with cluster info 2022-04-27 12:57:22 +02:00
.gitignore generate correct manual page and .pod 2011-10-20 08:21:56 +02:00
ApiChangeLog add disk rename feature 2021-11-09 17:02:29 +01:00
Makefile rbd: fix #3969: add rbd dev paths with cluster info 2022-04-27 12:57:22 +02:00
pvesm add setup_environment hook to CLIHandler class 2017-01-12 13:27:43 +01:00