5
0
mirror of git://git.proxmox.com/git/pve-guest-common.git synced 2025-01-11 05:17:49 +03:00

AbstractConfig.pm: do not copy/store replicate parameter in snapshot config

This commit is contained in:
Dietmar Maurer 2017-05-06 10:58:24 +02:00
parent a9cb48036c
commit bff37779c0

View File

@ -314,6 +314,7 @@ 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};
@ -329,11 +330,10 @@ sub __snapshot_apply_config {
snapshots => $conf->{snapshots},
};
# keep description, list of unused disks and replica parameters
# keep description, list of unused disks and replicate parameters
foreach my $k (keys %$conf) {
next if !($k =~ m/^unused\d+$/ || $k eq 'description'
|| $k eq 'replica' || $k eq 'replica_interval'
|| $k eq 'replica_target' || $k eq 'replica_rate_limit');
next if !($k =~ m/^unused\d+$/ || $k eq 'description' ||
$k eq 'replicate');
$newconf->{$k} = $conf->{$k};
}