File tree 1 file changed +2
-1
lines changed
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ func workspaceOwnerDataSource() *schema.Resource {
15
15
return & schema.Resource {
16
16
Description : "Use this data source to fetch information about the workspace owner." ,
17
17
ReadContext : func (ctx context.Context , rd * schema.ResourceData , i interface {}) diag.Diagnostics {
18
+ diags := diag.Diagnostics {}
19
+
18
20
if idStr := os .Getenv ("CODER_WORKSPACE_OWNER_ID" ); idStr != "" {
19
21
rd .SetId (idStr )
20
22
} else {
@@ -54,7 +56,6 @@ func workspaceOwnerDataSource() *schema.Resource {
54
56
_ = rd .Set ("oidc_access_token" , os .Getenv ("CODER_WORKSPACE_OWNER_OIDC_ACCESS_TOKEN" ))
55
57
56
58
if os .Getenv ("CODER_WORKSPACE_OWNER_LOGIN_TYPE" ) == "" {
57
- diags := req .Config .Get (ctx , & rd )
58
59
diags = append (diags , diag.Diagnostic {
59
60
Severity : diag .Warning ,
60
61
Summmary : "WARNING: The CODER_WORKSPACE_OWNER_LOGIN_TYPE env variable is not set"
You can’t perform that action at this time.
0 commit comments