From aed3d535d6309ff8d19462f108025b3accf0bd87 Mon Sep 17 00:00:00 2001 From: Marcin Maciaszczyk Date: Thu, 25 Jul 2024 12:57:27 +0200 Subject: [PATCH] fix group resource --- example/user/main.tf | 9 +++++++++ internal/resource/group.go | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/example/user/main.tf b/example/user/main.tf index 5d09f80..5a343eb 100644 --- a/example/user/main.tf +++ b/example/user/main.tf @@ -20,3 +20,12 @@ data "plural_user" "user" { data "plural_group" "group" { name = "team" } + +# resource "plural_group" "test" { +# name = "test" +# description = "test group" +# } +# +# resource "plural_group" "empty" { +# name = "empty" +# } diff --git a/internal/resource/group.go b/internal/resource/group.go index 980d90c..34907d1 100644 --- a/internal/resource/group.go +++ b/internal/resource/group.go @@ -52,7 +52,7 @@ func (r *GroupResource) Schema(_ context.Context, _ resource.SchemaRequest, resp MarkdownDescription: "Name of this group.", }, "description": schema.StringAttribute{ - Required: true, + Optional: true, Description: "Description of this group.", MarkdownDescription: "Description of this group.", },