add diffsuppress to allow lowercase ip protocols (#1118)

This commit is contained in:
Dana Hoffman 2018-02-22 09:27:43 -08:00 committed by GitHub
parent 9a4c92bb1b
commit 4154db93e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,6 +3,7 @@ package google
import (
"fmt"
"log"
"strings"
"github.com/hashicorp/terraform/helper/schema"
"google.golang.org/api/compute/v1"
@ -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{