diff --git a/PVE/CLI/pvesm.pm b/PVE/CLI/pvesm.pm index e3b4570..3767810 100755 --- a/PVE/CLI/pvesm.pm +++ b/PVE/CLI/pvesm.pm @@ -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', diff --git a/pvesm b/pvesm index c5c2b19..ece9be8 100755 --- a/pvesm +++ b/pvesm @@ -5,4 +5,4 @@ use warnings; use PVE::CLI::pvesm; -PVE::CLI::pvesm->run_cli(); +PVE::CLI::pvesm->run_cli_handler();