Skip to content

Commit

Permalink
fix: Use require instead of await import for Secrets SDK
Browse files Browse the repository at this point in the history
Signed-off-by: Trae Yelovich <[email protected]>
  • Loading branch information
traeok committed Oct 1, 2024
1 parent b11995e commit a0998c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/imperative/src/config/src/ConvertV1Profiles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@ export class ConvertV1Profiles {
*/
private static async isZoweKeyRingAvailable(): Promise<boolean> {
try {
ConvertV1Profiles.zoweKeyRing = (await import("@zowe/secrets-for-zowe-sdk")).keyring;
ConvertV1Profiles.zoweKeyRing = require("@zowe/secrets-for-zowe-sdk").keyring;
await ConvertV1Profiles.zoweKeyRing.findCredentials(CredentialManagerOverride.DEFAULT_CRED_MGR_NAME);
} catch (error) {
ConvertV1Profiles.addExceptionToConvertMsgs(
Expand Down

0 comments on commit a0998c1

Please sign in to comment.