diff --git a/.changelog/11900.txt b/.changelog/11900.txt new file mode 100644 index 0000000000..4be81e652e --- /dev/null +++ b/.changelog/11900.txt @@ -0,0 +1,3 @@ +```release-note:bug +logging: fixed the whitespace permadiff on `exclusions.filter` field in `google_logging_billing_account_sink`, `google_logging_folder_sink`, `google_logging_organization_sink` and `google_logging_project_sink` resources +``` \ No newline at end of file diff --git a/google-beta/services/logging/resource_logging_sink.go b/google-beta/services/logging/resource_logging_sink.go index c08e5c705c..6f6cd5c4af 100644 --- a/google-beta/services/logging/resource_logging_sink.go +++ b/google-beta/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,