Skip to content

Commit

Permalink
[YUNIKORN-2044] remove GetQueueInfo function
Browse files Browse the repository at this point in the history
  • Loading branch information
steinsgateted committed Oct 15, 2023
1 parent 55862bb commit b1c0c4b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/scheduler/partition.go
Original file line number Diff line number Diff line change
Expand Up @@ -469,8 +469,7 @@ func (pc *PartitionContext) getQueueInternal(name string) *objects.Queue {

// Get the queue info for the whole queue structure to pass to the webservice
func (pc *PartitionContext) GetPartitionQueues() dao.PartitionQueueDAOInfo {
var partitionQueueDAOInfo = dao.PartitionQueueDAOInfo{}
partitionQueueDAOInfo = pc.root.GetPartitionQueueDAOInfo()
partitionQueueDAOInfo := pc.root.GetPartitionQueueDAOInfo()
partitionQueueDAOInfo.Partition = common.GetPartitionNameWithoutClusterID(pc.Name)
return partitionQueueDAOInfo

Check warning on line 474 in pkg/scheduler/partition.go

View check run for this annotation

Codecov / codecov/patch

pkg/scheduler/partition.go#L472-L474

Added lines #L472 - L474 were not covered by tests
}
Expand Down

0 comments on commit b1c0c4b

Please sign in to comment.