providers/aws: ELB treats subnets as a set

This commit is contained in:
Mitchell Hashimoto 2014-10-20 13:34:14 -07:00
parent 74ad2797cf
commit 7e2a421d87
2 changed files with 5 additions and 1 deletions

View File

@ -30,6 +30,7 @@ BUG FIXES:
* providers/aws: Drain autoscale groups before deleting. [GH-435]
* providers/aws: Fix crash case if launch config is manually deleted. [GH-421]
* providers/aws: Disassociate EIP before destroying.
* providers/aws: ELB treats subnets as a set.
## 0.3.0 (October 14, 2014)

View File

@ -59,11 +59,14 @@ func resourceAwsElb() *schema.Resource {
// TODO: could be not ForceNew
"subnets": &schema.Schema{
Type: schema.TypeList,
Type: schema.TypeSet,
Elem: &schema.Schema{Type: schema.TypeString},
Optional: true,
ForceNew: true,
Computed: true,
Set: func(v interface{}) int {
return hashcode.String(v.(string))
},
},
// TODO: could be not ForceNew