Fixing aws_elb schema
If not suppling the `availability_zones`, they will be computed (meaning an update/refresh will retrieve the info and update the values to the state file). So without the `Computed = true` the diff will always flag this as a change, even when it’s not.
This commit is contained in:
parent
a305d48320
commit
852e2f74ca
|
@ -41,6 +41,7 @@ func resourceAwsElb() *schema.Resource {
|
||||||
Elem: &schema.Schema{Type: schema.TypeString},
|
Elem: &schema.Schema{Type: schema.TypeString},
|
||||||
Optional: true,
|
Optional: true,
|
||||||
ForceNew: true,
|
ForceNew: true,
|
||||||
|
Computed: true,
|
||||||
Set: func(v interface{}) int {
|
Set: func(v interface{}) int {
|
||||||
return hashcode.String(v.(string))
|
return hashcode.String(v.(string))
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue