From 7b1f7db7abeb68aae9f4b5209c006e56e3bd8f21 Mon Sep 17 00:00:00 2001 From: Reinaldo Oliveira Date: Tue, 3 Dec 2024 14:06:55 -0300 Subject: [PATCH] fix: adding default match allocation configuration when not provided --- internal/api/handlers/requestadapters/schedulers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/api/handlers/requestadapters/schedulers.go b/internal/api/handlers/requestadapters/schedulers.go index 6be15d01..299ca344 100644 --- a/internal/api/handlers/requestadapters/schedulers.go +++ b/internal/api/handlers/requestadapters/schedulers.go @@ -517,7 +517,7 @@ func fromApiMatchAllocation(matchAllocation *api.MatchAllocation) *allocation.Ma } } - return nil + return &allocation.MatchAllocation{MaxMatches: 1} } func getPortRange(portRange *port.PortRange) *api.PortRange {