mirror of
https://git.proxmox.com/git/pve-guest-common
synced 2025-07-26 01:57:39 +00: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},
|
snapshots => $conf->{snapshots},
|
||||||
};
|
};
|
||||||
|
|
||||||
# keep description and list of unused disks
|
# keep description, list of unused disks and replica parameters
|
||||||
foreach my $k (keys %$conf) {
|
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};
|
$newconf->{$k} = $conf->{$k};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user