mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-10-01 16:21:06 +00:00
add diffsuppress to allow lowercase ip protocols (#1118)
This commit is contained in:
parent
9a4c92bb1b
commit
4154db93e9
@ -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{
|
||||
|
Loading…
Reference in New Issue
Block a user