From 46693a00ece737cb3c49cc2f087a0641d96d5970 Mon Sep 17 00:00:00 2001 From: Ilya Dmitrichenko Date: Tue, 6 Nov 2018 14:35:37 +0000 Subject: [PATCH] Ensure subnet ref map is initialised --- pkg/cfn/builder/vpc.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/cfn/builder/vpc.go b/pkg/cfn/builder/vpc.go index cb397a4286..2f98b4e272 100644 --- a/pkg/cfn/builder/vpc.go +++ b/pkg/cfn/builder/vpc.go @@ -85,6 +85,7 @@ func (c *ClusterResourceSet) addResourcesForVPC() { func (c *ClusterResourceSet) importResourcesForVPC() { c.vpc = gfn.NewString(c.spec.VPC.ID) + c.subnets = make(map[api.SubnetTopology][]*gfn.Value) for topology := range c.spec.VPC.Subnets { for _, subnet := range c.spec.SubnetIDs(topology) { c.subnets[topology] = append(c.subnets[topology], gfn.NewString(subnet))