[pve-devel] [PATCH cluster] pvecm: remove RPCEnvironment use clause
Thomas Lamprecht
t.lamprecht at proxmox.com
Wed May 25 11:03:09 CEST 2016
We do not use it anywhere and it triggers an cyclic build dependency
between pve-access-control and pve-cluster.
Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---
data/PVE/CLI/pvecm.pm | 1 -
data/PVE/pvecm | 2 +-
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/data/PVE/CLI/pvecm.pm b/data/PVE/CLI/pvecm.pm
index 1dce049..53fcb3a 100755
--- a/data/PVE/CLI/pvecm.pm
+++ b/data/PVE/CLI/pvecm.pm
@@ -13,7 +13,6 @@ use PVE::Tools;
use PVE::Cluster;
use PVE::INotify;
use PVE::JSONSchema;
-use PVE::RPCEnvironment;
use PVE::CLIHandler;
use base qw(PVE::CLIHandler);
diff --git a/data/PVE/pvecm b/data/PVE/pvecm
index 35f3ff7..87bc9f6 100755
--- a/data/PVE/pvecm
+++ b/data/PVE/pvecm
@@ -17,4 +17,4 @@ my $prepare = sub {
my $local_ip_address = PVE::Cluster::remote_node_ip($nodename);
};
-PVE::CLI::pvecm->run_cli(undef, undef, $prepare);
+PVE::CLI::pvecm->run_cli_handler(prepare => $prepare, no_rpcenv => 1);
--
2.1.4
More information about the pve-devel
mailing list