Do store potentially empty values. Failing to do so will generate different hashes for identical route(s).
This commit is contained in:
parent
639e0c72b4
commit
19c6d04928
|
@ -123,13 +123,8 @@ func resourceAwsRouteTableRead(d *schema.ResourceData, meta interface{}) error {
|
||||||
m := make(map[string]interface{})
|
m := make(map[string]interface{})
|
||||||
m["cidr_block"] = r.DestinationCidrBlock
|
m["cidr_block"] = r.DestinationCidrBlock
|
||||||
|
|
||||||
if r.GatewayId != "" {
|
|
||||||
m["gateway_id"] = r.GatewayId
|
m["gateway_id"] = r.GatewayId
|
||||||
}
|
|
||||||
|
|
||||||
if r.InstanceId != "" {
|
|
||||||
m["instance_id"] = r.InstanceId
|
m["instance_id"] = r.InstanceId
|
||||||
}
|
|
||||||
|
|
||||||
route.Add(m)
|
route.Add(m)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue