From 0f0fd052e06818f74890d6832224b53bdd91138c Mon Sep 17 00:00:00 2001 From: Riley Karson Date: Wed, 8 Jan 2020 23:41:31 +0000 Subject: [PATCH] Add default_if_empty for quic_override Signed-off-by: Modular Magician --- google/resource_compute_target_https_proxy.go | 3 +++ google/resource_sql_database_instance_test.go | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/google/resource_compute_target_https_proxy.go b/google/resource_compute_target_https_proxy.go index 9d3bce7c78b..241e571c3f3 100644 --- a/google/resource_compute_target_https_proxy.go +++ b/google/resource_compute_target_https_proxy.go @@ -457,6 +457,9 @@ func flattenComputeTargetHttpsProxyName(v interface{}, d *schema.ResourceData) i } func flattenComputeTargetHttpsProxyQuicOverride(v interface{}, d *schema.ResourceData) interface{} { + if v == nil || v.(string) == "" { + return "NONE" + } return v } diff --git a/google/resource_sql_database_instance_test.go b/google/resource_sql_database_instance_test.go index 069037b74f2..11c939db0d2 100644 --- a/google/resource_sql_database_instance_test.go +++ b/google/resource_sql_database_instance_test.go @@ -10,7 +10,6 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/helper/acctest" "github.com/hashicorp/terraform-plugin-sdk/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/terraform" - sqladmin "google.golang.org/api/sqladmin/v1beta4" )