]> git.proxmox.com Git - pve-storage.git/blobdiff - PVE/Storage/ZFSPlugin.pm
fixes for new PVE::RPCEnvironment implementation
[pve-storage.git] / PVE / Storage / ZFSPlugin.pm
index ca25402b4c1dc2cc3edba94420e1d279a3dc1df4..90722054309ef7b40d66a32eae0113f804a9ee28 100644 (file)
@@ -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 = '';