Skip to content

Commit

Permalink
fix: refresh resources if updated in 'Manage Profile' option
Browse files Browse the repository at this point in the history
Signed-off-by: Trae Yelovich <[email protected]>
  • Loading branch information
traeok committed Dec 24, 2024
1 parent 4dcad76 commit a9798da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions packages/zowe-explorer/src/configuration/Profiles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -827,9 +827,7 @@ export class Profiles extends ProfilesCache {
comment: ["Service profile name"],
})
);
if (AuthHandler.isProfileLocked(serviceProfile)) {
AuthHandler.unlockProfile(serviceProfile);
}
AuthHandler.unlockProfile(serviceProfile, true);
}
return loginOk;
} catch (err) {
Expand Down
2 changes: 1 addition & 1 deletion packages/zowe-explorer/src/utils/ProfilesUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ export class ProfilesUtils {
args: [typeof profile === "string" ? profile : profile.name],
comment: ["Profile name"],
});
AuthHandler.unlockProfile(profile);
AuthHandler.unlockProfile(profile, true);
if (typeof profile !== "string") {
await Constants.PROFILES_CACHE.updateCachedProfile(profile, node);
}
Expand Down

0 comments on commit a9798da

Please sign in to comment.