[pve-devel] [PATCH common v3 1/1] PBSClient: file_restore_list: add timeout parameter
Dominik Csapak
d.csapak at proxmox.com
Fri May 27 10:22:01 CEST 2022
we always want the restore_list to use a timeout here. Set it to 25 seconds
so there is a little headroom between this and pveproxys 30s one.
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
src/PVE/PBSClient.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/PVE/PBSClient.pm b/src/PVE/PBSClient.pm
index 37385d7..7eaace3 100644
--- a/src/PVE/PBSClient.pm
+++ b/src/PVE/PBSClient.pm
@@ -378,7 +378,7 @@ sub file_restore_list {
return run_client_cmd(
$self,
"list",
- [ $snapshot, $filepath, "--base64", $base64 ? 1 : 0 ],
+ [ $snapshot, $filepath, "--base64", $base64 ? 1 : 0, '--timeout', 25],
0,
"proxmox-file-restore",
$namespace,
--
2.30.2
More information about the pve-devel
mailing list