Skip to content

Commit

Permalink
ooooh, I get it, that was correct :^)
Browse files Browse the repository at this point in the history
  • Loading branch information
aslilac committed Nov 8, 2024
1 parent 71dc51b commit 3397984
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/provider/organization_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ func (r *OrganizationResource) Create(ctx context.Context, req resource.CreateRe
resp.Diagnostics.AddError("Client Error", fmt.Sprintf("Unable to get current user, got error: %s", err))
return
}
if slice.Contains(members, UUIDValue(me.ID)) {
if !slice.Contains(members, UUIDValue(me.ID)) {
err = r.Client.DeleteOrganizationMember(ctx, org.ID, codersdk.Me)
if err != nil {
resp.Diagnostics.AddError("Client Error", fmt.Sprintf("Unable to delete self from new organization: %s", err))
Expand Down

0 comments on commit 3397984

Please sign in to comment.