Skip to content

Commit

Permalink
Fix long-standing bug in aws.stringSetToPointers
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Rudi Chiarito committed May 26, 2016
1 parent 70a7199 commit ca8699e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cloudprovider/providers/aws/aws_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
Expand Down

0 comments on commit ca8699e

Please sign in to comment.