]> git.proxmox.com Git - pve-common.git/commit
PBSClient: file_restore_list: add extraParams and use timeout
authorDominik Csapak <d.csapak@proxmox.com>
Thu, 10 Nov 2022 10:36:30 +0000 (11:36 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 15 Nov 2022 12:22:30 +0000 (13:22 +0100)
commit76e28e03258e438c1adf21785c3e0679491e464e
tree78ed20fdd3903ea61c56270ab4f5b1bece893433
parenteb6f49f4b2fbb1574d86226d3d7edaffb55fc840
PBSClient: file_restore_list: add extraParams and use timeout

under some conditions, like when calling it in the api where we have
a 30s pveproxy limit, we want to make use of the '--timeout' parameter
of the file-restore binary, but we may want to call it in the future
where we don't want add timeout.

To achieve that, add an extendable 'extra_params' hash parameter to
'file_restore_list' and use the timeout from there.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
src/PVE/PBSClient.pm