Skip to content

Commit

Permalink
test commit
Browse files Browse the repository at this point in the history
Signed-off-by: jace-roell <[email protected]>
  • Loading branch information
jace-roell committed Dec 18, 2024
1 parent 95a3fdd commit de0d736
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions file.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
const { ProfileInfo } = require("@zowe/imperative");
(async () => {
const profInfo = new ProfileInfo("zowe");
await profInfo.readProfilesFromDisk();
const upd = { profileName: "lpar1.zosmf", profileType: "zosmf" };
await profInfo.updateProperty({ ...upd, property: "user", value: "abc", setSecure: true });
await profInfo.updateProperty({ ...upd, property: "password", value: "daaaef", setSecure: true });
})();
2 changes: 1 addition & 1 deletion packages/imperative/src/config/src/ProfileInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ export class ProfileInfo {
layerProperties = this.mLoadedConfig.findLayer(false, osLoc.global)?.properties;
realBaseProfileName = layerProperties?.defaults.base;
}
if (realBaseProfileName) baseProfile = this.mLoadedConfig.api.profiles.buildProfile(realBaseProfileName, layerProperties?.profiles);
if (realBaseProfileName) baseProfile = this.mLoadedConfig.api.profiles.buildProfile(realBaseProfileName, layerProperties?.profiles); //
else baseProfile = null;
}
if (baseProfile != null) {
Expand Down

0 comments on commit de0d736

Please sign in to comment.