so that they are documented and get displayed by pvesh/pvenode
all those fields must exists (since they come from the upid)
aside from the exitstatus, so marking that as optional
forum user reported that they are missing:
https://forum.proxmox.com/threads/ergebnis-eines-tasks-per-api-abfragen.92267/
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
(cherry picked from commit
9777a9c4ae69b2f799c132bbc4086214d01b6ce8)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
status => {
type => 'string', enum => ['running', 'stopped'],
},
+ type => {
+ type => 'string',
+ },
+ id => {
+ type => 'string',
+ },
+ user => {
+ type => 'string',
+ },
+ exitstatus => {
+ type => 'string',
+ optional => 1,
+ },
+ upid => {
+ type => 'string',
+ },
+ starttime => {
+ type => 'number',
+ },
+ node => {
+ type => 'string',
+ },
},
},
code => sub {