Skip to content

Commit

Permalink
docs: add warning on possible CTFd model inconsistency
Browse files Browse the repository at this point in the history
  • Loading branch information
pandatix committed Mar 2, 2024
1 parent 112db2b commit e36c79a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion provider/team_data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func (team *teamDataSource) Schema(ctx context.Context, req datasource.SchemaReq
Computed: true,
},
"captain": schema.StringAttribute{
MarkdownDescription: "Member who is captain of the team. Must be part of the members too.",
MarkdownDescription: "Member who is captain of the team. Must be part of the members too. Note it could cause a fatal error in case of resource import with an inconsistent CTFd configuration i.e. if a team has no captain yet (should not be possible).",
Computed: true,
},
},
Expand Down
2 changes: 1 addition & 1 deletion provider/team_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func (r *teamResource) Schema(ctx context.Context, req resource.SchemaRequest, r
Required: true,
},
"captain": schema.StringAttribute{
MarkdownDescription: "Member who is captain of the team. Must be part of the members too.",
MarkdownDescription: "Member who is captain of the team. Must be part of the members too. Note it could cause a fatal error in case of resource import with an inconsistent CTFd configuration i.e. if a team has no captain yet (should not be possible).",
Required: true,
},
},
Expand Down

0 comments on commit e36c79a

Please sign in to comment.