Skip to content

Commit

Permalink
add diffsuppress to allow lowercase ip protocols (#1118)
Browse files Browse the repository at this point in the history
  • Loading branch information
danawillow authored Feb 22, 2018
1 parent 9a4c92b commit 4154db9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions google/resource_compute_forwarding_rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package google
import (
"fmt"
"log"
"strings"

"github.com/hashicorp/terraform/helper/schema"
"google.golang.org/api/compute/v1"
Expand Down Expand Up @@ -55,6 +56,9 @@ func resourceComputeForwardingRule() *schema.Resource {
Optional: true,
ForceNew: true,
Computed: true,
DiffSuppressFunc: func(k, old, new string, d *schema.ResourceData) bool {
return strings.ToUpper(old) == strings.ToUpper(new)
},
},

"load_balancing_scheme": &schema.Schema{
Expand Down

0 comments on commit 4154db9

Please sign in to comment.