Skip to content

Commit 08b5856

Browse files
committed
add revert empty profile
2 parents c1dd5cb + 423a73e commit 08b5856

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
@@ -178,12 +178,10 @@ export class LanguageClientAuth {
178178
}
179179

180180
updateIamProfile(profileName: string, accessKey: string, secretKey: string, sessionToken?: string, roleArn?: string): Promise<UpdateProfileResult> {
181-
// Use empty profile type if invalidating all IAM fields
182-
const kind = !accessKey && !secretKey ? ProfileKind.EmptyProfile : ProfileKind.IamCredentialProfile
183181
// Add credentials and delete SSO settings from profile
184182
return this.client.sendRequest(updateProfileRequestType.method, {
185183
profile: {
186-
kinds: [kind],
184+
kinds: [ProfileKind.IamCredentialProfile],
187185
name: profileName,
188186
settings: {
189187
region: '',

0 commit comments

Comments
 (0)