From 41ca13dc7c6e9a5797a00cb6237bb04b11b27aec Mon Sep 17 00:00:00 2001 From: David Szabo <38033309+daszabo@users.noreply.github.com> Date: Thu, 31 Oct 2024 11:16:37 +0100 Subject: [PATCH] CB-27556 cascading_delete field should be computed, due to it's default value (#171) --- resources/environments/schema_aws_environment.go | 1 + resources/environments/schema_azure_environment.go | 1 + resources/environments/schema_gcp_environment.go | 1 + 3 files changed, 3 insertions(+) diff --git a/resources/environments/schema_aws_environment.go b/resources/environments/schema_aws_environment.go index 6ce1420e..1ac57b91 100644 --- a/resources/environments/schema_aws_environment.go +++ b/resources/environments/schema_aws_environment.go @@ -146,6 +146,7 @@ var AwsEnvironmentSchema = schema.Schema{ }, "cascading_delete": schema.BoolAttribute{ Optional: true, + Computed: true, Default: booldefault.StaticBool(true), }, "freeipa": FreeIpaSchema, diff --git a/resources/environments/schema_azure_environment.go b/resources/environments/schema_azure_environment.go index 0a9faf01..eba905fb 100644 --- a/resources/environments/schema_azure_environment.go +++ b/resources/environments/schema_azure_environment.go @@ -121,6 +121,7 @@ var AzureEnvironmentSchema = schema.Schema{ }, "cascading_delete": schema.BoolAttribute{ Optional: true, + Computed: true, Default: booldefault.StaticBool(true), }, "existing_network_params": schema.SingleNestedAttribute{ diff --git a/resources/environments/schema_gcp_environment.go b/resources/environments/schema_gcp_environment.go index f07c8953..33791dfc 100644 --- a/resources/environments/schema_gcp_environment.go +++ b/resources/environments/schema_gcp_environment.go @@ -35,6 +35,7 @@ func (r *gcpEnvironmentResource) Schema(_ context.Context, _ resource.SchemaRequ }, "cascading_delete": schema.BoolAttribute{ Optional: true, + Computed: true, Default: booldefault.StaticBool(true), }, "polling_options": schema.SingleNestedAttribute{