]> git.proxmox.com Git - pve-common.git/blobdiff - src/PVE/PBSClient.pm
fix #4299: network : disable_ipv6: fix path checking
[pve-common.git] / src / PVE / PBSClient.pm
index d7dd6e10756b1b51b14069609e9913aa56a55223..ec05a1cb70419c4e987cacc0c11145fedae98b5e 100644 (file)
@@ -375,14 +375,19 @@ sub status {
 };
 
 sub file_restore_list {
-    my ($self, $snapshot, $filepath, $base64) = @_;
+    my ($self, $snapshot, $filepath, $base64, $extra_params) = @_;
 
     (my $namespace, $snapshot) = split_namespaced_parameter($self, $snapshot);
+    my $cmd = [ $snapshot, $filepath, "--base64", $base64 ? 1 : 0];
+
+    if (my $timeout = $extra_params->{timeout}) {
+       push $cmd->@*, '--timeout', $timeout;
+    }
 
     return run_client_cmd(
        $self,
        "list",
-       [ $snapshot, $filepath, "--base64", $base64 ? 1 : 0 ],
+       $cmd,
        0,
        "proxmox-file-restore",
        $namespace,