fixes for new PVE::RPCEnvironment implementation
Use PVE::RPCEnvironment->is_worker() instead of PVE::RPCEnvironment::is_worker().
This commit is contained in:
@ -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 = '';
|
||||
|
||||
@ -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 = [];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user