terraform/builtin/providers/alicloud/struct_security_groups.go

12 lines
285 B
Go
Raw Normal View History

2017-01-19 15:08:56 +01:00
package alicloud
// Takes the result of flatmap.Expand for an array of strings
// and returns a []string
func expandStringList(configured []interface{}) []string {
vs := make([]string, 0, len(configured))
for _, v := range configured {
vs = append(vs, v.(string))
}
return vs
}