[pve-devel] [PATCH manager] fix #5753: api: add 'pstart' member to task status return schema

Fabian Grünbichler f.gruenbichler at proxmox.com
Fri Oct 4 10:34:46 CEST 2024


using the definition already used in the task index API schema in the same
module.

Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
---
starttime has a disagreeing schema atm - 'number' vs 'integer'. since this is
the return schema it doesn't really matter I guess, but might be worth it to
settle on one or the other for all 4 instances of pstart/starttime here?

 PVE/API2/Tasks.pm | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/PVE/API2/Tasks.pm b/PVE/API2/Tasks.pm
index b763b74d8..4ea9832b8 100644
--- a/PVE/API2/Tasks.pm
+++ b/PVE/API2/Tasks.pm
@@ -482,6 +482,9 @@ __PACKAGE__->register_method({
 	    starttime => {
 		type => 'number',
 	    },
+	    pstart => {
+		type => 'integer',
+	    },
 	    node => {
 		type => 'string',
 	    },
-- 
2.39.5





More information about the pve-devel mailing list