[pve-devel] [PATCH] Fix: If a Ct are created and a pool are given add the Ct to pool.
Wolfgang Link
w.link at proxmox.com
Fri Aug 7 11:37:17 CEST 2015
---
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
More information about the pve-devel
mailing list