]> git.proxmox.com Git - pve-manager.git/commit - PVE/API2/Tasks.pm
task index: fix return schema annotations
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Wed, 23 Jan 2019 13:56:33 +0000 (14:56 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 23 Jan 2019 17:42:59 +0000 (18:42 +0100)
commitf6faf09cbf4aa85795434485d6e3ecf1431e5f01
treebafda59d0ac906af7e731df9cc033c027e4ec8e8
parent8dacbee3e2342ae570c6af8ea2e4974f319cb6f5
task index: fix return schema annotations

both task sources use PVE::Tools::upid_decode, which ensures all of the
':' delimited fields are set.

this only leaves 'status' and 'endtime' as optional, which are not set
for currently running tasks.

reorder them in the code for easier matching with their on-disk format.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Acked-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/API2/Tasks.pm