From 8f7065177fd871699559cbc30a0a769d95530982 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Thu, 3 Nov 2016 08:37:32 +0100 Subject: [PATCH] write_datacenter_config: do not overwrite new migration option with old value Just to be sure. --- data/PVE/Cluster.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/PVE/Cluster.pm b/data/PVE/Cluster.pm index f8a3729..da8dab4 100644 --- a/data/PVE/Cluster.pm +++ b/data/PVE/Cluster.pm @@ -1438,7 +1438,7 @@ sub write_datacenter_config { my ($filename, $cfg) = @_; # map deprecated setting to new one - if (defined($cfg->{migration_unsecure})) { + if (defined($cfg->{migration_unsecure}) && !defined($cfg->{migration})) { my $migration_unsecure = delete $cfg->{migration_unsecure}; $cfg->{migration}->{type} = ($migration_unsecure) ? 'insecure' : 'secure'; } -- 2.39.2