From 504e9f2ac726adf6040c5711013b93821e4d32b8 Mon Sep 17 00:00:00 2001 From: Luke Young <91491244+lyoung-confluent@users.noreply.github.com> Date: Fri, 13 Sep 2024 16:05:39 -0700 Subject: [PATCH] Add OptionalSurroundingSpacesSuppress to logging_sink exclusion filters --- google/services/logging/resource_logging_sink.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/google/services/logging/resource_logging_sink.go b/google/services/logging/resource_logging_sink.go index c08e5c705cc..6f6cd5c4afa 100644 --- a/google/services/logging/resource_logging_sink.go +++ b/google/services/logging/resource_logging_sink.go @@ -65,9 +65,10 @@ func resourceLoggingSinkSchema() map[string]*schema.Schema { Description: `A description of this exclusion.`, }, "filter": { - Type: schema.TypeString, - Required: true, - Description: `An advanced logs filter that matches the log entries to be excluded. By using the sample function, you can exclude less than 100% of the matching log entries`, + Type: schema.TypeString, + Required: true, + DiffSuppressFunc: OptionalSurroundingSpacesSuppress, + Description: `An advanced logs filter that matches the log entries to be excluded. By using the sample function, you can exclude less than 100% of the matching log entries`, }, "disabled": { Type: schema.TypeBool,