mirror of https://github.com/kubernetes/kops.git
Fix unnecessary copying of list
This commit is contained in:
parent
277b917a24
commit
cc4aca62f4
|
|
@ -372,9 +372,7 @@ func TestLoadBalancerSubnets(t *testing.T) {
|
|||
CIDR: cidr,
|
||||
})
|
||||
}
|
||||
for _, s := range test.lbSubnets {
|
||||
cluster.Spec.API.LoadBalancer.Subnets = append(cluster.Spec.API.LoadBalancer.Subnets, s)
|
||||
}
|
||||
cluster.Spec.API.LoadBalancer.Subnets = test.lbSubnets
|
||||
errs := awsValidateCluster(&cluster)
|
||||
testErrors(t, test, errs, test.expected)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue