diff --git a/PVE/Storage/ZFSPlugin.pm b/PVE/Storage/ZFSPlugin.pm index ca25402..9072205 100644 --- a/PVE/Storage/ZFSPlugin.pm +++ b/PVE/Storage/ZFSPlugin.pm @@ -51,7 +51,7 @@ my $zfs_get_base = sub { sub zfs_request { my ($class, $scfg, $timeout, $method, @params) = @_; - $timeout = PVE::RPCEnvironment::is_worker() ? 60*60 : 10 + $timeout = PVE::RPCEnvironment->is_worker() ? 60*60 : 10 if !$timeout; my $msg = ''; diff --git a/PVE/Storage/ZFSPoolPlugin.pm b/PVE/Storage/ZFSPoolPlugin.pm index 227244d..ca0a2cf 100644 --- a/PVE/Storage/ZFSPoolPlugin.pm +++ b/PVE/Storage/ZFSPoolPlugin.pm @@ -165,7 +165,7 @@ sub path { sub zfs_request { my ($class, $scfg, $timeout, $method, @params) = @_; - my $default_timeout = PVE::RPCEnvironment::is_worker() ? 60*60 : 5; + my $default_timeout = PVE::RPCEnvironment->is_worker() ? 60*60 : 5; my $cmd = [];