mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-05-29 16:38:49 +00:00
fix #1260: convert moved template disk to base
this was already possible manually via "qm template", but doing it automatically when moving a disk of a template makes more sense. Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
parent
e7032e9ec3
commit
fbd7dcce4d
@ -2650,6 +2650,10 @@ __PACKAGE__->register_method({
|
|||||||
|
|
||||||
PVE::QemuConfig->add_unused_volume($conf, $old_volid) if !$param->{delete};
|
PVE::QemuConfig->add_unused_volume($conf, $old_volid) if !$param->{delete};
|
||||||
|
|
||||||
|
# convert moved disk to base if part of template
|
||||||
|
PVE::QemuServer::template_create($vmid, $conf, $disk)
|
||||||
|
if PVE::QemuConfig->is_template($conf);
|
||||||
|
|
||||||
PVE::QemuConfig->write_config($vmid, $conf);
|
PVE::QemuConfig->write_config($vmid, $conf);
|
||||||
|
|
||||||
eval {
|
eval {
|
||||||
|
Loading…
Reference in New Issue
Block a user