Null safety

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
Nicolas De Loof 2020-09-08 10:50:50 +02:00
parent 12a15a9a4c
commit fda09712c0
No known key found for this signature in database
GPG Key ID: 9858809D6F8F6E7E
1 changed files with 3 additions and 0 deletions

View File

@ -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,
}