File tree 2 files changed +4
-1
lines changed
2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ func TestIntegration(t *testing.T) {
112
112
"workspace_owner.session_token" : `.+` ,
113
113
"workspace_owner.ssh_private_key" : `(?s)^.+?BEGIN OPENSSH PRIVATE KEY.+?END OPENSSH PRIVATE KEY.+?$` ,
114
114
"workspace_owner.ssh_public_key" : `(?s)^ssh-ed25519.+$` ,
115
- "workspace_owner.login_type" : `none ` ,
115
+ "workspace_owner.login_type" : `` ,
116
116
},
117
117
},
118
118
{
Original file line number Diff line number Diff line change @@ -53,6 +53,9 @@ func workspaceOwnerDataSource() *schema.Resource {
53
53
_ = rd .Set ("session_token" , os .Getenv ("CODER_WORKSPACE_OWNER_SESSION_TOKEN" ))
54
54
_ = rd .Set ("oidc_access_token" , os .Getenv ("CODER_WORKSPACE_OWNER_OIDC_ACCESS_TOKEN" ))
55
55
56
+ if os .Getenv ("CODER_WORKSPACE_OWNER_LOGIN_TYPE" ) == "" {
57
+ diag .Warn ("The CODER_WORKSPACE_OWNER_LOGIN_TYPE env variable is not set" )
58
+ }
56
59
_ = rd .Set ("login_type" , os .Getenv ("CODER_WORKSPACE_OWNER_LOGIN_TYPE" ))
57
60
58
61
return nil
You can’t perform that action at this time.
0 commit comments