]> git.proxmox.com Git - pve-container.git/commit - src/PVE/LXC.pm
use empty config to reserve container ID
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Fri, 3 Jun 2016 07:56:17 +0000 (09:56 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 3 Jun 2016 08:05:08 +0000 (10:05 +0200)
commitbccaa3719cdf5142c073a9860d7d75474655eafe
tree1329a96a0cf5020dc66f36749185d4a960b42fb8
parent51665c2ddb76839d8dd37baf7c8ff650732918d2
use empty config to reserve container ID

also adapt PVE::LXC::destroy_lxc_container to optionally
write an arbitray new config instead of deleting it
altogether. the old configuration is replaced by an empty
temporary configuration at the moment, but this could easily
be reused if/when a "create"-locked config is used instead
of an empty one.
src/PVE/API2/LXC.pm
src/PVE/LXC.pm