Fix long-standing bug in aws.stringSetToPointers

Instead of N pointers, we were returning N null pointers, followed by the real
thing. It's not clear why we didn't trip on this until now, maybe there is a
new server-side check for empty subnetID strings.
This commit is contained in:
Rudi Chiarito 2016-05-25 23:04:53 -04:00
parent 70a71990d4
commit ca8699e83e

View File

@ -25,7 +25,7 @@ func stringSetToPointers(in sets.String) []*string {
if in == nil {
return nil
}
out := make([]*string, len(in))
out := make([]*string, 0, len(in))
for k := range in {
out = append(out, aws.String(k))
}