PVE/CLI/pveum.pm: call setup_default_cli_env()
authorDietmar Maurer <dietmar@proxmox.com>
Tue, 2 May 2017 08:39:22 +0000 (10:39 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 2 May 2017 08:39:22 +0000 (10:39 +0200)
PVE/CLI/pveum.pm

index 8a8edc5..aef7089 100755 (executable)
@@ -21,6 +21,10 @@ use PVE::CLIHandler;
 
 use base qw(PVE::CLIHandler);
 
+sub setup_environment {
+    PVE::RPCEnvironment->setup_default_cli_env();
+}
+
 sub read_password {
     # return $ENV{PVE_PW_TICKET} if defined($ENV{PVE_PW_TICKET});