-
Notifications
You must be signed in to change notification settings - Fork 8.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Azure: fall back to powershell when no preferred shell is set (#8197)
I am still not sure what is the full set of scenarios that the problem might occur, but for me it occurred for an "old" cloud shell account, and didn't reproduce since I have reconfigured it. These behavior might be explained by the fact that "preferred shell type" did not exist in the API originally and thus was not set. In such case, Terminal succeeds to retrieve to the settings but then crashes when reading the missing field. To fix it, I handle the case where the field is missing and fallback to PowerShell. ## Validation Steps Performed * Tested manually, only once. Closes #7056
- Loading branch information
Showing
2 changed files
with
23 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters