[pve-devel] [PATCH manager] REST/RPCEnvironment's check_worker is a method now

Wolfgang Bumiller w.bumiller at proxmox.com
Thu Jan 26 11:13:21 CET 2017


---
 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 0577942..269abbd 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;
     }});
-- 
2.1.4




More information about the pve-devel mailing list