Skip to content

Commit

Permalink
allow compute_route priority to send empty values
Browse files Browse the repository at this point in the history
  • Loading branch information
megan07 authored Dec 11, 2019
2 parents 806c3d7 + f983958 commit 0c4c960
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion google/compute_route.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func GetComputeRouteApiObject(d TerraformResourceData, config *Config) (map[stri
priorityProp, err := expandComputeRoutePriority(d.Get("priority"), d, config)
if err != nil {
return nil, err
} else if v, ok := d.GetOkExists("priority"); !isEmptyValue(reflect.ValueOf(priorityProp)) && (ok || !reflect.DeepEqual(v, priorityProp)) {
} else if v, ok := d.GetOkExists("priority"); ok || !reflect.DeepEqual(v, priorityProp) {
obj["priority"] = priorityProp
}
tagsProp, err := expandComputeRouteTags(d.Get("tags"), d, config)
Expand Down

0 comments on commit 0c4c960

Please sign in to comment.