From 5d899ecab97c45e04f75e22bfbe2a3a210003b91 Mon Sep 17 00:00:00 2001 From: Sam Levenick Date: Fri, 6 May 2022 11:13:24 -0700 Subject: [PATCH] Add defaults for expr and description to prevent spurious diffs (#5997) * Add defaults for expr and description to prevent spurious diffs * Handwritten instead --- .../terraform/resources/resource_compute_security_policy.go.erb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mmv1/third_party/terraform/resources/resource_compute_security_policy.go.erb b/mmv1/third_party/terraform/resources/resource_compute_security_policy.go.erb index 7fbd2539f148..47ff8cf2532d 100644 --- a/mmv1/third_party/terraform/resources/resource_compute_security_policy.go.erb +++ b/mmv1/third_party/terraform/resources/resource_compute_security_policy.go.erb @@ -111,6 +111,7 @@ func resourceComputeSecurityPolicy() *schema.Resource { "versioned_expr": { Type: schema.TypeString, Optional: true, + Default: "", ValidateFunc: validation.StringInSlice([]string{"SRC_IPS_V1"}, false), Description: `Predefined rule expression. If this field is specified, config must also be specified. Available options: SRC_IPS_V1: Must specify the corresponding src_ip_ranges field in config.`, }, @@ -150,6 +151,7 @@ func resourceComputeSecurityPolicy() *schema.Resource { "description": { Type: schema.TypeString, + Default: "", Optional: true, Description: `An optional description of this rule. Max size is 64.`, },