From f70fc9ace90e6017c55507dabf9d0024c7efd18e Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Thu, 26 Jan 2017 11:13:21 +0100 Subject: [PATCH] REST/RPCEnvironment's check_worker is a method now --- PVE/API2/Tasks.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/API2/Tasks.pm b/PVE/API2/Tasks.pm index 0577942f..269abbd0 100644 --- a/PVE/API2/Tasks.pm +++ b/PVE/API2/Tasks.pm @@ -191,7 +191,7 @@ __PACKAGE__->register_method({ $rpcenv->check($user, "/nodes/$node", [ 'Sys.Modify' ]); } - PVE::RPCEnvironment::check_worker($param->{upid}, 1); + PVE::RPCEnvironment->check_worker($param->{upid}, 1); return undef; }});