]> git.proxmox.com Git - pve-storage.git/commitdiff
zPool: fixup timeout setting for import
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 17 Apr 2019 14:39:37 +0000 (14:39 +0000)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 17 Apr 2019 14:54:42 +0000 (14:54 +0000)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/Storage/ZFSPoolPlugin.pm

index 7315c0c7453525d46e8ca2ea66513375504fe511..047a06e6ccad7da637b6666e3e44c214fa767cf5 100644 (file)
@@ -173,7 +173,7 @@ sub zfs_request {
        push @$cmd, 'zpool', 'list';
     } elsif ($method eq 'zpool_import') {
        push @$cmd, 'zpool', 'import';
-       $default_timeout = 15 if $default_timeout < 15;
+       $timeout = 15 if !$timeout || $timeout < 15;
     } else {
        push @$cmd, 'zfs', $method;
     }