From e9ab8ea313f5f63224f19792c68c3ca543af7d2d Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Wed, 17 Apr 2019 14:39:37 +0000 Subject: [PATCH] zPool: fixup timeout setting for import Signed-off-by: Thomas Lamprecht --- PVE/Storage/ZFSPoolPlugin.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/Storage/ZFSPoolPlugin.pm b/PVE/Storage/ZFSPoolPlugin.pm index 7315c0c..047a06e 100644 --- a/PVE/Storage/ZFSPoolPlugin.pm +++ b/PVE/Storage/ZFSPoolPlugin.pm @@ -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; } -- 2.39.2