Skip to content

Commit

Permalink
review
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanndickson committed Jul 15, 2024
1 parent c31e0d0 commit 162a744
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions integration/user-test/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,12 @@ resource "coderd_user" "dean" {
data "coderd_user" "ethan" {
username = "ethan"
}

resource "coderd_user" "ethan2" {
username = "${data.coderd_user.ethan.username}2"
name = "${data.coderd_user.ethan.name}2"
email = "${data.coderd_user.ethan.email}.au"
roles = data.coderd_user.ethan.roles
suspended = data.coderd_user.ethan.suspended
}

2 changes: 1 addition & 1 deletion internal/provider/user_data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func (d *UserDataSource) Schema(ctx context.Context, req datasource.SchemaReques
Optional: true,
},
"name": schema.StringAttribute{
MarkdownDescription: "Display name of the user. Defaults to username.",
MarkdownDescription: "Display name of the user.",
Computed: true,
},
"email": schema.StringAttribute{
Expand Down

0 comments on commit 162a744

Please sign in to comment.