Skip to content

Commit

Permalink
fix: Move "coder_workspace.username" to "coder_workspace.owner" (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
kylecarbs authored Mar 25, 2022
1 parent ca6b30b commit 549826b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/data-sources/workspace.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ resource "kubernetes_pod" "dev" {
### Read-Only

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


4 changes: 2 additions & 2 deletions internal/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func New() *schema.Provider {
transition = "start"
}
rd.Set("transition", transition)
rd.Set("username", os.Getenv("CODER_WORKSPACE_USERNAME"))
rd.Set("owner", os.Getenv("CODER_WORKSPACE_OWNER"))
rd.Set("name", os.Getenv("CODER_WORKSPACE_NAME"))
return nil
},
Expand All @@ -75,7 +75,7 @@ func New() *schema.Provider {
Computed: true,
Description: `Either "start" or "stop". Use this to start/stop resources with "count".`,
},
"username": {
"owner": {
Type: schema.TypeString,
Computed: true,
Description: "Username of the workspace owner.",
Expand Down

0 comments on commit 549826b

Please sign in to comment.