Skip to content

Commit 549826b

Browse files
authored
fix: Move "coder_workspace.username" to "coder_workspace.owner" (#6)
1 parent ca6b30b commit 549826b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: docs/data-sources/workspace.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ resource "kubernetes_pod" "dev" {
3131
### Read-Only
3232

3333
- **name** (String) Name of the workspace.
34+
- **owner** (String) Username of the workspace owner.
3435
- **transition** (String) Either "start" or "stop". Use this to start/stop resources with "count".
35-
- **username** (String) Username of the workspace owner.
3636

3737

Diff for: internal/provider/provider.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ func New() *schema.Provider {
6565
transition = "start"
6666
}
6767
rd.Set("transition", transition)
68-
rd.Set("username", os.Getenv("CODER_WORKSPACE_USERNAME"))
68+
rd.Set("owner", os.Getenv("CODER_WORKSPACE_OWNER"))
6969
rd.Set("name", os.Getenv("CODER_WORKSPACE_NAME"))
7070
return nil
7171
},
@@ -75,7 +75,7 @@ func New() *schema.Provider {
7575
Computed: true,
7676
Description: `Either "start" or "stop". Use this to start/stop resources with "count".`,
7777
},
78-
"username": {
78+
"owner": {
7979
Type: schema.TypeString,
8080
Computed: true,
8181
Description: "Username of the workspace owner.",

0 commit comments

Comments
 (0)