[pve-devel] applied: [PATCH pve-common 0/3] remove references to PVE::RPCEnvironment

Fabian Grünbichler f.gruenbichler at proxmox.com
Fri Jan 13 10:21:03 CET 2017


On Thu, Jan 12, 2017 at 10:12:13AM +0100, Dietmar Maurer wrote:
> Try to remove the cyclic dependency.
> 
> I simply added the 'setup_environment' hook to CLIHandler.pm.
> So we need to add the following code to all CLI handler classes:
> 
> sub setup_environment {
>     PVE::RPCEnvironment->setup_default_cli_env();
> }
> 
> 
> Dietmar Maurer (3):
>   remove calls to PVE::RPCEnvironment
>   CLIHandler.pm: add setup_environment hook
>   CLIHandler.pm: remove run as root restriction
> 
>  src/PVE/CLIHandler.pm | 51 ++++++++++++++++++++++++++++-----------------------
>  1 file changed, 28 insertions(+), 23 deletions(-)
> 
> -- 
> 2.1.4
> 
> _______________________________________________
> pve-devel mailing list
> pve-devel at pve.proxmox.com
> http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel




More information about the pve-devel mailing list