Skip to content

Commit

Permalink
fix group resource
Browse files Browse the repository at this point in the history
  • Loading branch information
maciaszczykm committed Jul 25, 2024
1 parent a951e26 commit aed3d53
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions example/user/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
# }
2 changes: 1 addition & 1 deletion internal/resource/group.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
},
Expand Down

0 comments on commit aed3d53

Please sign in to comment.