]> git.proxmox.com Git - pve-container.git/commit
fix: #1075: Correctly restore CT templates form backup
authorChristian Ebner <c.ebner@proxmox.com>
Wed, 17 Apr 2019 14:38:28 +0000 (16:38 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 25 Apr 2019 06:41:21 +0000 (06:41 +0000)
commita2d3e5c3fd47efb85637adbc517ce53ab863319f
tree181e03e555aabec9592e4ad1344c4a4a2a6e1149
parent3de2fe692914c901bc28a2d3f18a145ac5cd5aea
fix: #1075: Correctly restore CT templates form backup

Restoring a backup from a CT template wrongly resulted in a CT with the template
flag set in the config.
This makes sure the CT template backup gets restored to a CT and only if the
storage supports templates, the resulting CT is converted to a template.
Otherwise the backup restores simply to a CT.

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
src/PVE/API2/LXC.pm
src/PVE/LXC/Create.pm