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@pve.proxmox.com
> http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

_______________________________________________
pve-devel mailing list
pve-devel@pve.proxmox.com
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to