mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-06-15 10:18:04 +00:00
api: return UPID in template call
as reported on the forum, this is currently missing, making status queries via the API impossible: https://forum.proxmox.com/threads/create-vm-via-api-interface.95942/#post-416084 Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com> Reviewed-by: Fabian Ebner <f.ebner@proxmox.com>
This commit is contained in:
parent
3e07c6d54b
commit
b297918ce2
@ -4336,7 +4336,10 @@ __PACKAGE__->register_method({
|
|||||||
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
returns => { type => 'null'},
|
returns => {
|
||||||
|
type => 'string',
|
||||||
|
description => "the task ID.",
|
||||||
|
},
|
||||||
code => sub {
|
code => sub {
|
||||||
my ($param) = @_;
|
my ($param) = @_;
|
||||||
|
|
||||||
@ -4375,8 +4378,7 @@ __PACKAGE__->register_method({
|
|||||||
return $rpcenv->fork_worker('qmtemplate', $vmid, $authuser, $realcmd);
|
return $rpcenv->fork_worker('qmtemplate', $vmid, $authuser, $realcmd);
|
||||||
};
|
};
|
||||||
|
|
||||||
PVE::QemuConfig->lock_config($vmid, $updatefn);
|
return PVE::QemuConfig->lock_config($vmid, $updatefn);
|
||||||
return;
|
|
||||||
}});
|
}});
|
||||||
|
|
||||||
__PACKAGE__->register_method({
|
__PACKAGE__->register_method({
|
||||||
|
Loading…
Reference in New Issue
Block a user