[pve-devel] applied: [PATCH pve-container] add setup_environment hook to CLIHandler class

Dietmar Maurer dietmar at proxmox.com
Thu Jan 12 13:23:42 CET 2017


Signed-off-by: Dietmar Maurer <dietmar at proxmox.com>
---
 src/PVE/CLI/pct.pm | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/PVE/CLI/pct.pm b/src/PVE/CLI/pct.pm
index 2d3a7a1..4ffb8db 100755
--- a/src/PVE/CLI/pct.pm
+++ b/src/PVE/CLI/pct.pm
@@ -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',
-- 
2.1.4




More information about the pve-devel mailing list