From b442b4222e25e742938616af2dd6767bdbc35fc0 Mon Sep 17 00:00:00 2001 From: Justin Santa Barbara Date: Sun, 18 Mar 2018 17:11:47 -0400 Subject: [PATCH] cloudmock: fix prefix for RouteTableAssociation We were generating ids with two hyphens (rta--1) --- cloudmock/aws/mockec2/subnets.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloudmock/aws/mockec2/subnets.go b/cloudmock/aws/mockec2/subnets.go index 20c5c6b785..1471d232dd 100644 --- a/cloudmock/aws/mockec2/subnets.go +++ b/cloudmock/aws/mockec2/subnets.go @@ -180,7 +180,7 @@ func (m *MockEC2) AssociateRouteTable(request *ec2.AssociateRouteTableInput) (*e return nil, fmt.Errorf("RouteTable not found") } - associationID := m.allocateId("rta-") + associationID := m.allocateId("rta") rt.Associations = append(rt.Associations, &ec2.RouteTableAssociation{ RouteTableId: rt.RouteTableId,