Skip to content

Commit 423a73e

Browse files
committed
Revert empty profile
1 parent a4edd1f commit 423a73e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/core/src/auth/auth2.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,12 +173,10 @@ export class LanguageClientAuth {
173173
}
174174

175175
updateIamProfile(profileName: string, accessKey: string, secretKey: string, sessionToken?: string, roleArn?: string): Promise<UpdateProfileResult> {
176-
// Use empty profile type if invalidating all IAM fields
177-
const kind = !accessKey && !secretKey ? ProfileKind.EmptyProfile : ProfileKind.IamCredentialProfile
178176
// Add credentials and delete SSO settings from profile
179177
return this.client.sendRequest(updateProfileRequestType.method, {
180178
profile: {
181-
kinds: [kind],
179+
kinds: [ProfileKind.IamCredentialProfile],
182180
name: profileName,
183181
settings: {
184182
region: '',

0 commit comments

Comments
 (0)