Skip to content

Commit

Permalink
allow compute_route priority to send empty values
Browse files Browse the repository at this point in the history
Signed-off-by: Modular Magician <magic-modules@google.com>
  • Loading branch information
megan07 authored and modular-magician committed Dec 10, 2019
1 parent 806c3d7 commit f983958
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 f983958

Please sign in to comment.