Skip to content

Commit

Permalink
allow setting firewall priority to 0 (#755)
Browse files Browse the repository at this point in the history
Signed-off-by: Modular Magician <magic-modules@google.com>
  • Loading branch information
modular-magician authored and danawillow committed May 28, 2019
1 parent 72c9bfd commit cc025be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions google-beta/resource_compute_firewall.go
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ func resourceComputeFirewallCreate(d *schema.ResourceData, meta interface{}) err
priorityProp, err := expandComputeFirewallPriority(d.Get("priority"), d, config)
if err != nil {
return 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
}
sourceRangesProp, err := expandComputeFirewallSourceRanges(d.Get("source_ranges"), d, config)
Expand Down Expand Up @@ -494,7 +494,7 @@ func resourceComputeFirewallUpdate(d *schema.ResourceData, meta interface{}) err
priorityProp, err := expandComputeFirewallPriority(d.Get("priority"), d, config)
if err != nil {
return err
} else if v, ok := d.GetOkExists("priority"); !isEmptyValue(reflect.ValueOf(v)) && (ok || !reflect.DeepEqual(v, priorityProp)) {
} else if v, ok := d.GetOkExists("priority"); ok || !reflect.DeepEqual(v, priorityProp) {
obj["priority"] = priorityProp
}
sourceRangesProp, err := expandComputeFirewallSourceRanges(d.Get("source_ranges"), d, config)
Expand Down

0 comments on commit cc025be

Please sign in to comment.