add setup_environment hook to CLIHandler class
and use run_cli_handler instead of depreciated run_cli.
This commit is contained in:
@ -23,6 +23,10 @@ use base qw(PVE::CLIHandler);
|
|||||||
|
|
||||||
my $nodename = PVE::INotify::nodename();
|
my $nodename = PVE::INotify::nodename();
|
||||||
|
|
||||||
|
sub setup_environment {
|
||||||
|
PVE::RPCEnvironment->setup_default_cli_env();
|
||||||
|
}
|
||||||
|
|
||||||
__PACKAGE__->register_method ({
|
__PACKAGE__->register_method ({
|
||||||
name => 'path',
|
name => 'path',
|
||||||
path => 'path',
|
path => 'path',
|
||||||
|
|||||||
Reference in New Issue
Block a user