[pve-devel] [PATCH pve-guest-common 2/2] AbstractConfig.pm: remove code for replicate configuration
Dietmar Maurer
dietmar at proxmox.com
Tue May 23 08:40:49 CEST 2017
It is no longer used.
Signed-off-by: Dietmar Maurer <dietmar at proxmox.com>
---
PVE/AbstractConfig.pm | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/PVE/AbstractConfig.pm b/PVE/AbstractConfig.pm
index 17985d7..06369ed 100644
--- a/PVE/AbstractConfig.pm
+++ b/PVE/AbstractConfig.pm
@@ -314,7 +314,6 @@ sub __snapshot_copy_config {
next if $k eq 'lock';
next if $k eq 'digest';
next if $k eq 'description';
- next if $k eq 'replicate';
next if $k =~ m/^unused\d+$/;
$dest->{$k} = $source->{$k};
@@ -330,10 +329,9 @@ sub __snapshot_apply_config {
snapshots => $conf->{snapshots},
};
- # keep description, list of unused disks and replicate parameters
+ # keep description and list of unused disks
foreach my $k (keys %$conf) {
- next if !($k =~ m/^unused\d+$/ || $k eq 'description' ||
- $k eq 'replicate');
+ next if !($k =~ m/^unused\d+$/ || $k eq 'description');
$newconf->{$k} = $conf->{$k};
}
--
2.11.0
More information about the pve-devel
mailing list