fixes for new PVE::RPCEnvironment implementation

Use PVE::RPCEnvironment->is_worker() instead of
PVE::RPCEnvironment::is_worker().
This commit is contained in:
Dietmar Maurer
2017-01-18 17:12:43 +01:00
parent e438d0940f
commit ef881e10eb
2 changed files with 2 additions and 2 deletions

View File

@ -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 = [];