diff --git a/.changelog/4472.txt b/.changelog/4472.txt new file mode 100644 index 0000000000..c120a41728 --- /dev/null +++ b/.changelog/4472.txt @@ -0,0 +1,3 @@ +```release-note:bug +compute: fixed overly-aggressive detection of changes to google_compute_security_policy rules +``` diff --git a/google-beta/resource_compute_security_policy.go b/google-beta/resource_compute_security_policy.go index 60203a9e7c..bf79eba927 100644 --- a/google-beta/resource_compute_security_policy.go +++ b/google-beta/resource_compute_security_policy.go @@ -146,6 +146,7 @@ func resourceComputeSecurityPolicy() *schema.Resource { "preview": { Type: schema.TypeBool, Optional: true, + Computed: true, Description: `When set to true, the action specified above is not enforced. Stackdriver logs for requests that trigger a preview action are annotated as such.`, }, }, diff --git a/google-beta/resource_dataflow_flex_template_job_test.go b/google-beta/resource_dataflow_flex_template_job_test.go index df04d28bb0..0d037482e0 100644 --- a/google-beta/resource_dataflow_flex_template_job_test.go +++ b/google-beta/resource_dataflow_flex_template_job_test.go @@ -8,7 +8,7 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" - "google.golang.org/api/compute/v1" + compute "google.golang.org/api/compute/v1" ) func TestAccDataflowFlexTemplateJob_basic(t *testing.T) {