add setup_environment hook to CLIHandler class

and use run_cli_handler instead of depreciated run_cli.
This commit is contained in:
Dietmar Maurer
2017-01-12 13:27:43 +01:00
parent e2e74320b7
commit f984732e0e
2 changed files with 5 additions and 1 deletions

View File

@ -23,6 +23,10 @@ use base qw(PVE::CLIHandler);
my $nodename = PVE::INotify::nodename();
sub setup_environment {
PVE::RPCEnvironment->setup_default_cli_env();
}
__PACKAGE__->register_method ({
name => 'path',
path => 'path',

2
pvesm
View File

@ -5,4 +5,4 @@ use warnings;
use PVE::CLI::pvesm;
PVE::CLI::pvesm->run_cli();
PVE::CLI::pvesm->run_cli_handler();