Merge pull request #852 from flaviostutz/custom-vpc-bug

Fixing empty vpcId that prevented custom VPCs to work
This commit is contained in:
Nicolas De loof 2020-10-31 10:29:54 +01:00 committed by GitHub
commit 714ed52d98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -167,8 +167,8 @@ func (b *ecsAPIService) parseClusterExtension(ctx context.Context, project *type
func (b *ecsAPIService) parseVPCExtension(ctx context.Context, project *types.Project) (string, []awsResource, error) {
var vpc string
if x, ok := project.Extensions[extensionVPC]; ok {
vpcID := x.(string)
err := b.aws.CheckVPC(ctx, vpcID)
vpc = x.(string)
err := b.aws.CheckVPC(ctx, vpc)
if err != nil {
return "", nil, err
}