cloudmock: fix prefix for RouteTableAssociation

We were generating ids with two hyphens (rta--1)
This commit is contained in:
Justin Santa Barbara 2018-03-18 17:11:47 -04:00
parent 98ba08f496
commit b442b4222e
1 changed files with 1 additions and 1 deletions

View File

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