Переглянути джерело

Null safety

Signed-off-by: Nicolas De Loof <[email protected]>
Nicolas De Loof 5 роки тому
батько
коміт
fda09712c0
1 змінених файлів з 3 додано та 0 видалено
  1. 3 0
      ecs/local/compose.go

+ 3 - 0
ecs/local/compose.go

@@ -92,6 +92,9 @@ func (e ecsLocalSimulation) Convert(ctx context.Context, project *types.Project)
 		service.Networks["credentials_network"] = &types.ServiceNetworkConfig{
 		service.Networks["credentials_network"] = &types.ServiceNetworkConfig{
 			Ipv4Address: fmt.Sprintf("169.254.170.%d", i+3),
 			Ipv4Address: fmt.Sprintf("169.254.170.%d", i+3),
 		}
 		}
+		if service.DependsOn == nil {
+			service.DependsOn = types.DependsOnConfig{}
+		}
 		service.DependsOn["ecs-local-endpoints"] = types.ServiceDependency{
 		service.DependsOn["ecs-local-endpoints"] = types.ServiceDependency{
 			Condition: types.ServiceConditionStarted,
 			Condition: types.ServiceConditionStarted,
 		}
 		}