ProfileInfo.profileManagerWillLoad
fails if readProfilesFromDisk
was not yet called
#2284
Labels
bug
Something isn't working
priority-medium
Not functioning - next quarter if capacity permits
severity-medium
Bug where workaround exists or that doesn't prevent the usage of Zowe. Just makes it more complex.
Describe the bug
ProfileInfo.profileManagerWillLoad
was added to check if the credential manager exists before loading profiles (usingreadProfilesFromDisk
). However, if you haven't calledreadProfilesFromDisk
yet and you callProfileInfo.profileManagerWillLoad
, it will throw an error.Expected and actual results
Expected:
ProfileInfo.profileManagerWillLoad
returnstrue
orfalse
regardless of whether profiles have been read from disk.Actual:
ProfileInfo.profileManagerWillLoad
throws an error if profiles weren't yet read from disk.The text was updated successfully, but these errors were encountered: