We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ceefe84 commit b76e232Copy full SHA for b76e232
provider/workspace_owner.go
@@ -55,13 +55,9 @@ func workspaceOwnerDataSource() *schema.Resource {
55
_ = rd.Set("session_token", os.Getenv("CODER_WORKSPACE_OWNER_SESSION_TOKEN"))
56
_ = rd.Set("oidc_access_token", os.Getenv("CODER_WORKSPACE_OWNER_OIDC_ACCESS_TOKEN"))
57
58
- if os.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
- })
+ if loginType := os.Getenv("CODER_WORKSPACE_OWNER_LOGIN_TYPE"); loginType != "" {
+ _ = rd.Set("login_type", loginType)
63
}
64
- _ = rd.Set("login_type", os.Getenv("CODER_WORKSPACE_OWNER_LOGIN_TYPE"))
65
66
return diags
67
},
0 commit comments