mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-06-12 21:41:20 +00:00
correctly set and remove lock
This commit is contained in:
parent
0d750e4f29
commit
7498eb64a3
@ -3755,6 +3755,7 @@ sub set_migration_caps {
|
||||
}
|
||||
|
||||
my $fast_plug_option = {
|
||||
'lock' => 1,
|
||||
'name' => 1,
|
||||
'onboot' => 1,
|
||||
'shares' => 1,
|
||||
|
1
qm
1
qm
@ -198,6 +198,7 @@ __PACKAGE__->register_method ({
|
||||
PVE::QemuServer::lock_config ($vmid, sub {
|
||||
my $conf = PVE::QemuServer::load_config($vmid);
|
||||
delete $conf->{lock};
|
||||
delete $conf->{pending}->{lock} if $conf->{pending}; # just to be sure
|
||||
PVE::QemuServer::update_config_nolock($vmid, $conf, 1);
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user