--- src/PVE/API2/LXC.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/PVE/API2/LXC.pm b/src/PVE/API2/LXC.pm index 93ab537..8823ae4 100644 --- a/src/PVE/API2/LXC.pm +++ b/src/PVE/API2/LXC.pm @@ -301,7 +301,7 @@ __PACKAGE__->register_method({ my $code = sub { &$check_vmid_usage(); # final check after locking - + PVE::Cluster::check_cfs_quorum(); my $volid; @@ -336,6 +336,7 @@ __PACKAGE__->register_method({ PVE::LXC::destroy_config($vmid); die $err; } + PVE::AccessControl::add_vm_to_pool($vmid, $pool) if $pool; }; my $realcmd = sub { PVE::LXC::lock_container($vmid, 1, $code); }; -- 2.1.4 _______________________________________________ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel