mirror of https://github.com/kubernetes/kops.git
cloudmock: fix prefix for RouteTableAssociation
We were generating ids with two hyphens (rta--1)
This commit is contained in:
parent
98ba08f496
commit
b442b4222e
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue