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

Dietmar Maurer dietmar at proxmox.com
Thu Jan 12 10:12:13 CET 2017


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




More information about the pve-devel mailing list