[pve-devel] [PATCH v3 1/3] remove dependcy to libpve-access-control

Dominik Csapak d.csapak at proxmox.com
Mon Dec 11 14:23:56 CET 2017


since we do not use any functionality of the RPCEnvironment, we remove it

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 src/PVE/CLI/termproxy.pm | 5 -----
 src/bin/termproxy        | 2 --
 2 files changed, 7 deletions(-)

diff --git a/src/PVE/CLI/termproxy.pm b/src/PVE/CLI/termproxy.pm
index 3932f55..382270d 100644
--- a/src/PVE/CLI/termproxy.pm
+++ b/src/PVE/CLI/termproxy.pm
@@ -3,7 +3,6 @@ package PVE::CLI::termproxy;
 use strict;
 use warnings;
 
-use PVE::RPCEnvironment;
 use PVE::CLIHandler;
 use PVE::JSONSchema qw(get_standard_option);
 use PVE::PTY;
@@ -17,10 +16,6 @@ use constant MAX_QUEUE_LEN => 16*1024;
 use constant DEFAULT_PATH => '/';
 use constant DEFAULT_PERM => 'Sys.Console';
 
-sub setup_environment {
-    PVE::RPCEnvironment->setup_default_cli_env();
-}
-
 sub verify_ticket {
     my ($ticket, $user, $path, $perm) = @_;
 
diff --git a/src/bin/termproxy b/src/bin/termproxy
index 6af56c6..a28bcd9 100755
--- a/src/bin/termproxy
+++ b/src/bin/termproxy
@@ -3,8 +3,6 @@
 use strict;
 use warnings;
 
-use PVE::AccessControl;
-
 use PVE::CLI::termproxy;
 
 PVE::CLI::termproxy->run_cli_handler();
-- 
2.11.0





More information about the pve-devel mailing list