We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3a55840 + c80756f commit d234fe8Copy full SHA for d234fe8
pkg/destroy/azure/azure.go
@@ -733,7 +733,11 @@ func isAuthError(err error) bool {
733
// https://github.com/Azure/azure-sdk-for-go/blob/sdk/azidentity/v1.1.0/sdk/azidentity/errors.go#L36
734
var authErr *azidentity.AuthenticationFailedError
735
if errors.As(err, &authErr) {
736
- if authErr.RawResponse.StatusCode >= 400 && authErr.RawResponse.StatusCode <= 403 {
+ if authErr.RawResponse == nil {
737
+ // Unable to get a proper response, probably due to some proxy error. Fixing this piece of code
738
+ // so it doesn't throw a panic.
739
+ return true
740
+ } else if authErr.RawResponse.StatusCode >= 400 && authErr.RawResponse.StatusCode <= 403 {
741
return true
742
}
743
0 commit comments