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

Commitb76e232

Browse files
authored
fix(provider): remove warning diag if CODER_WORKSPACE_OWNER_LOGIN_TYPE is not set (#311)
1 parentceefe84 commitb76e232

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

‎provider/workspace_owner.go‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,9 @@ func workspaceOwnerDataSource() *schema.Resource {
5555
_=rd.Set("session_token",os.Getenv("CODER_WORKSPACE_OWNER_SESSION_TOKEN"))
5656
_=rd.Set("oidc_access_token",os.Getenv("CODER_WORKSPACE_OWNER_OIDC_ACCESS_TOKEN"))
5757

58-
ifos.Getenv("CODER_WORKSPACE_OWNER_LOGIN_TYPE")=="" {
59-
diags=append(diags, diag.Diagnostic{
60-
Severity:diag.Warning,
61-
Summary:"WARNING: The CODER_WORKSPACE_OWNER_LOGIN_TYPE env variable is not set",
62-
})
58+
ifloginType:=os.Getenv("CODER_WORKSPACE_OWNER_LOGIN_TYPE");loginType!="" {
59+
_=rd.Set("login_type",loginType)
6360
}
64-
_=rd.Set("login_type",os.Getenv("CODER_WORKSPACE_OWNER_LOGIN_TYPE"))
6561

6662
returndiags
6763
},

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp