From da3e06702c35fe01fa9f158e00d44806826b3c18 Mon Sep 17 00:00:00 2001 From: Shaswot Subedi Date: Thu, 25 Jan 2024 14:08:12 +0000 Subject: [PATCH] default for workspace OA --- internal/provider/resource_work_space.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/provider/resource_work_space.go b/internal/provider/resource_work_space.go index 2b1d74c..591e820 100644 --- a/internal/provider/resource_work_space.go +++ b/internal/provider/resource_work_space.go @@ -10,6 +10,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/path" "github.com/hashicorp/terraform-plugin-framework/resource" "github.com/hashicorp/terraform-plugin-framework/resource/schema" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/booldefault" "github.com/hashicorp/terraform-plugin-framework/resource/schema/listdefault" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringdefault" @@ -111,6 +112,7 @@ func (r *workspaceResource) Schema(_ context.Context, req resource.SchemaRequest Description: "Whether open access is enabled for the workspace", Optional: true, Computed: true, + Default: booldefault.StaticBool(false), }, "id": schema.StringAttribute{ Description: "The ID of the workspace",