correctly set and remove lock

This commit is contained in:
Dietmar Maurer 2015-02-15 09:04:30 +01:00
parent 0d750e4f29
commit 7498eb64a3
2 changed files with 2 additions and 0 deletions

View File

@ -3755,6 +3755,7 @@ sub set_migration_caps {
}
my $fast_plug_option = {
'lock' => 1,
'name' => 1,
'onboot' => 1,
'shares' => 1,

1
qm
View File

@ -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);
});