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:
parent
eb5b10c326
commit
38532f70ad
@ -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};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user