We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e4b8fb commit 210847dCopy full SHA for 210847d
provider/workspace_owner.go
@@ -54,11 +54,15 @@ func workspaceOwnerDataSource() *schema.Resource {
54
_ = rd.Set("oidc_access_token", os.Getenv("CODER_WORKSPACE_OWNER_OIDC_ACCESS_TOKEN"))
55
56
if os.Getenv("CODER_WORKSPACE_OWNER_LOGIN_TYPE") == "" {
57
- diag.Warn("The CODER_WORKSPACE_OWNER_LOGIN_TYPE env variable is not set")
+ diags := req.Config.Get(ctx, &rd)
58
+ diags = append(diags, diag.Diagnostic{
59
+ Severity: diag.Warning,
60
+ Summmary: "WARNING: The CODER_WORKSPACE_OWNER_LOGIN_TYPE env variable is not set"
61
+ },
62
}
63
_ = rd.Set("login_type", os.Getenv("CODER_WORKSPACE_OWNER_LOGIN_TYPE"))
64
- return nil
65
+ return diags
66
},
67
Schema: map[string]*schema.Schema{
68
"id": {
0 commit comments