Skip to content

Commit

Permalink
Fix for hashicorpGH-8227. Read the route table association for the su…
Browse files Browse the repository at this point in the history
…bnet.
  • Loading branch information
Andreas Kyrris committed Oct 18, 2016
1 parent 7bd25d7 commit e97b9fc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions builtin/providers/azurerm/resource_arm_subnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,12 @@ func resourceArmSubnetRead(d *schema.ResourceData, meta interface{}) error {
}
}

if resp.Properties.RouteTable == nil {
d.Set("route_table_id", nil)
} else {
d.Set("route_table_id", *resp.Properties.RouteTable.ID)
}

return nil
}

Expand Down

0 comments on commit e97b9fc

Please sign in to comment.