-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix azure.IsNotFound for new azcore error type (#3842)
Fixes an issue I discovered today when trying to reproduce another issue report. `pulumi refresh` is broken for this provider: ``` $ PATH="$HOME/pulumi/pan/bin:$PATH" pulumi refresh --skip-preview -s dev pulumi:pulumi:Stack recoveryservices-protecteditem-dev **failed** 1 error; 4 warnings ~ ├─ azure-native:resources:ResourceGroup resourceGroup **refreshing failed** 1 error azure-native:resources:ResourceGroup (resourceGroup): error: Code="ResourceGroupNotFound" Message="Resource group 'resourceGroup3f871416' could not be found." ``` The reason is that #3783 regressed `azure.IsNotFound`, causing `Read` to report an error when a resource doesn't exist in Azure. This PR fixes the problem and adds test coverage.
- Loading branch information
Showing
4 changed files
with
73 additions
and
9 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
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