Skip to content

Commit 9e738f9

Browse files
Marked preview as Computed: true (#4472) (#2940)
Signed-off-by: Modular Magician <[email protected]>
1 parent cd189df commit 9e738f9

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

.changelog/4472.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:bug
2+
compute: fixed overly-aggressive detection of changes to google_compute_security_policy rules
3+
```

google-beta/resource_compute_security_policy.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ func resourceComputeSecurityPolicy() *schema.Resource {
146146
"preview": {
147147
Type: schema.TypeBool,
148148
Optional: true,
149+
Computed: true,
149150
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.`,
150151
},
151152
},

google-beta/resource_dataflow_flex_template_job_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88

99
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
1010
"github.com/hashicorp/terraform-plugin-sdk/v2/terraform"
11-
"google.golang.org/api/compute/v1"
11+
compute "google.golang.org/api/compute/v1"
1212
)
1313

1414
func TestAccDataflowFlexTemplateJob_basic(t *testing.T) {

0 commit comments

Comments
 (0)