[pve-devel] [PATCH 1/3] PVE::API2::OpenVZ: pass ssh cipher option on migrate

Stefan Priebe s.priebe at profihost.ag
Tue Oct 30 15:44:25 CET 2012


From: Stefan Priebe <git at profihost.ag>


Signed-off-by: root <root at neuerserver.de-nserver.de.de-nserver.de>
---
 PVE/API2/OpenVZ.pm |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/PVE/API2/OpenVZ.pm b/PVE/API2/OpenVZ.pm
index d609167..846021a 100644
--- a/PVE/API2/OpenVZ.pm
+++ b/PVE/API2/OpenVZ.pm
@@ -1417,10 +1417,14 @@ __PACKAGE__->register_method({
 
 	} else {
 
+            my $datacenterconf = PVE::Cluster::cfs_read_file('datacenter.cfg');
+            my $ssh_opts = {};
+            $ssh_opts->{cipher} = $datacenterconf->{cipher} if ( $datacenterconf->{cipher} );
+
 	    my $realcmd = sub {
 		my $upid = shift;
 
-		PVE::OpenVZMigrate->migrate($target, $targetip, $vmid, $param);
+		PVE::OpenVZMigrate->migrate($target, $targetip, $vmid, $param, $ssh_opts);
 
 		return;
 	    };
-- 
1.7.2.5




More information about the pve-devel mailing list