provider/aws: Set the state of `cross_zone_load_balancing` during the read func (#6295)

Changes made manually to the ELB property were not being set and
Terraform was reporting now changes to infra was to be made on refresh
This commit is contained in:
Paul Stack 2016-04-22 01:47:19 +01:00
parent 282b4e44da
commit 6ac312e682
1 changed files with 1 additions and 0 deletions

View File

@ -362,6 +362,7 @@ func resourceAwsElbRead(d *schema.ResourceData, meta interface{}) error {
d.Set("idle_timeout", lbAttrs.ConnectionSettings.IdleTimeout)
d.Set("connection_draining", lbAttrs.ConnectionDraining.Enabled)
d.Set("connection_draining_timeout", lbAttrs.ConnectionDraining.Timeout)
d.Set("cross_zone_load_balancing", lbAttrs.CrossZoneLoadBalancing.Enabled)
if lbAttrs.AccessLog != nil {
if err := d.Set("access_logs", flattenAccessLog(lbAttrs.AccessLog)); err != nil {
return err