From d3881cedc8d8bc3075c8a2bc4d4d32f6aa7e9366 Mon Sep 17 00:00:00 2001 From: haser Date: Mon, 6 Nov 2023 15:42:18 +0800 Subject: [PATCH] [YUNIKORN-2085] CurrentPriority field missing from Queues API response when pedding application exists --- pkg/webservice/dao/queue_info.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/webservice/dao/queue_info.go b/pkg/webservice/dao/queue_info.go index 515d801e9..59a6a49a1 100644 --- a/pkg/webservice/dao/queue_info.go +++ b/pkg/webservice/dao/queue_info.go @@ -56,6 +56,6 @@ type PartitionQueueDAOInfo struct { AbsUsedCapacity map[string]int64 `json:"absUsedCapacity,omitempty"` MaxRunningApps uint64 `json:"maxRunningApps,omitempty"` RunningApps uint64 `json:"runningApps,omitempty"` - CurrentPriority int32 `json:"currentPriority,omitempty"` + CurrentPriority int32 `json:"currentPriority"` // no omitempty, as the current priority value may be 0, which is a valid priority level AllocatingAcceptedApps []string `json:"allocatingAcceptedApps,omitempty"` }