From fda09712c0bbd5c006dca67256011d2face0496c Mon Sep 17 00:00:00 2001 From: Nicolas De Loof Date: Tue, 8 Sep 2020 10:50:50 +0200 Subject: [PATCH] Null safety Signed-off-by: Nicolas De Loof --- ecs/local/compose.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ecs/local/compose.go b/ecs/local/compose.go index bf80abcb9..016028338 100644 --- a/ecs/local/compose.go +++ b/ecs/local/compose.go @@ -92,6 +92,9 @@ func (e ecsLocalSimulation) Convert(ctx context.Context, project *types.Project) service.Networks["credentials_network"] = &types.ServiceNetworkConfig{ Ipv4Address: fmt.Sprintf("169.254.170.%d", i+3), } + if service.DependsOn == nil { + service.DependsOn = types.DependsOnConfig{} + } service.DependsOn["ecs-local-endpoints"] = types.ServiceDependency{ Condition: types.ServiceConditionStarted, }