5
0
mirror of git://git.proxmox.com/git/pve-guest-common.git synced 2024-12-23 17:34:10 +03:00

Replica parameters should be ignored by snapshot and restore.

The replica are parameter that should not be changed by a rollback.
This commit is contained in:
Wolfgang Link 2017-04-24 17:15:34 +02:00 committed by Wolfgang Bumiller
parent eb5b10c326
commit 38532f70ad

View File

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