]> git.proxmox.com Git - pve-access-control.git/commitdiff
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 8a8edc5359f6cf8fcfb003bdef3ab92d20b28da2..aef70899551c476c84d27a6274adc92cb8aad9b1 100755 (executable)
@@ -21,6 +21,10 @@ use PVE::CLIHandler;
 
 use base qw(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});
 
 sub read_password {
     # return $ENV{PVE_PW_TICKET} if defined($ENV{PVE_PW_TICKET});