]> git.proxmox.com Git - pve-container.git/commitdiff
add setup_environment hook to CLIHandler class
authorDietmar Maurer <dietmar@proxmox.com>
Thu, 12 Jan 2017 12:20:06 +0000 (13:20 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 12 Jan 2017 12:20:06 +0000 (13:20 +0100)
src/PVE/CLI/pct.pm

index 2d3a7a1afd4e3fde55949a0b2e63ba6ff4777b44..4ffb8db429a5f4fb7fb5d95a2de3ff76002519d2 100755 (executable)
@@ -33,6 +33,10 @@ my $upid_exit = sub {
     exit($status eq 'OK' ? 0 : -1);
 };
 
+sub setup_environment {
+    PVE::RPCEnvironment->setup_default_cli_env();
+}
+
 __PACKAGE__->register_method ({
     name => 'status',
     path => 'status',