Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit549826b

Browse files
authored
fix: Move "coder_workspace.username" to "coder_workspace.owner" (#6)
1 parentca6b30b commit549826b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

‎docs/data-sources/workspace.md

Lines changed: 1 addition & 1 deletion
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

‎internal/provider/provider.go

Lines changed: 2 additions & 2 deletions
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
returnnil
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)

[8]ページ先頭

©2009-2025 Movatter.jp