mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-05-28 16:04:52 +00:00
check also pending changes when reverting/deleting
otherwise we are not able to revert/delete pending changes which introduce a new config line Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
77b4c60758
commit
af6d2db4b3
@ -1012,7 +1012,7 @@ my $update_vm_api = sub {
|
||||
foreach my $opt (@delete) {
|
||||
$modified->{$opt} = 1;
|
||||
$conf = PVE::QemuConfig->load_config($vmid); # update/reload
|
||||
if (!defined($conf->{$opt})) {
|
||||
if (!defined($conf->{$opt}) && !defined($conf->{pending}->{$opt})) {
|
||||
warn "cannot delete '$opt' - not set in current configuration!\n";
|
||||
$modified->{$opt} = 0;
|
||||
next;
|
||||
|
Loading…
Reference in New Issue
Block a user