mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-10-04 17:51:11 +00:00
Properly handle diff in google_compute_route next_hop_instance field (#716)
This commit is contained in:
parent
88a21c2304
commit
5aa9f574ea
@ -54,6 +54,7 @@ func resourceComputeRoute() *schema.Resource {
|
|||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Optional: true,
|
Optional: true,
|
||||||
ForceNew: true,
|
ForceNew: true,
|
||||||
|
DiffSuppressFunc: compareSelfLinkOrResourceName,
|
||||||
},
|
},
|
||||||
|
|
||||||
"next_hop_instance_zone": &schema.Schema{
|
"next_hop_instance_zone": &schema.Schema{
|
||||||
@ -210,7 +211,7 @@ func resourceComputeRouteRead(d *schema.ResourceData, meta interface{}) error {
|
|||||||
d.Set("network", route.Network)
|
d.Set("network", route.Network)
|
||||||
d.Set("priority", route.Priority)
|
d.Set("priority", route.Priority)
|
||||||
d.Set("next_hop_gateway", route.NextHopGateway)
|
d.Set("next_hop_gateway", route.NextHopGateway)
|
||||||
d.Set("next_hop_instance", nextHopInstanceFieldValue.Name)
|
d.Set("next_hop_instance", nextHopInstanceFieldValue.RelativeLink())
|
||||||
d.Set("next_hop_instance_zone", nextHopInstanceFieldValue.Zone)
|
d.Set("next_hop_instance_zone", nextHopInstanceFieldValue.Zone)
|
||||||
d.Set("next_hop_ip", route.NextHopIp)
|
d.Set("next_hop_ip", route.NextHopIp)
|
||||||
d.Set("next_hop_vpn_tunnel", route.NextHopVpnTunnel)
|
d.Set("next_hop_vpn_tunnel", route.NextHopVpnTunnel)
|
||||||
|
Loading…
Reference in New Issue
Block a user