Do store potentially empty values. Failing to do so will generate different hashes for identical route(s).

This commit is contained in:
Otto Jongerius 2015-01-02 19:03:13 +11:00
parent 639e0c72b4
commit 19c6d04928
1 changed files with 2 additions and 7 deletions

View File

@ -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)
} }