From 80876450aede8dd00735840ee59022656eb71001 Mon Sep 17 00:00:00 2001 From: shreddedbacon Date: Sat, 2 Nov 2024 16:45:20 +1100 Subject: [PATCH] fix: actually set containers for services --- services/actions-handler/handler/controller_builds.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/services/actions-handler/handler/controller_builds.go b/services/actions-handler/handler/controller_builds.go index 2d9411ac5f..8a60b2de22 100644 --- a/services/actions-handler/handler/controller_builds.go +++ b/services/actions-handler/handler/controller_builds.go @@ -206,7 +206,10 @@ func (m *Messenger) handleBuild(ctx context.Context, messageQueue *mq.MessageQue } // then update all the existing services for _, mService := range message.Meta.EnvironmentServices { - var containers []schema.ServiceContainerInput + containers := []schema.ServiceContainerInput{} + for _, sCon := range mService.Containers { + containers = append(containers, schema.ServiceContainerInput(sCon)) + } s2add := schema.AddEnvironmentServiceInput{EnvironmentID: environmentID, Name: mService.Name, Type: mService.Type, Containers: containers} // add or update it setServices, err := lagoon.AddOrUpdateEnvironmentService(ctx, s2add, l)