Skip to content

Commit

Permalink
Fix minor nil dereference bug
Browse files Browse the repository at this point in the history
  • Loading branch information
matthchr committed Jun 29, 2020
1 parent ad89626 commit d0ed18b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/resourcemanager/keyvaults/keyops.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ func (k *KeyvaultKeyClient) Ensure(ctx context.Context, obj runtime.Object, opts

// this generally means the operator doesn't have access to the keyvault
// this can be resolved elsewhere so we should keep trying
if req.Response.StatusCode == http.StatusForbidden {
// See https://github.com/Azure/azure-sdk-for-go/issues/10975 for more details
if req.Response.Response != nil && req.Response.StatusCode == http.StatusForbidden {
return false, nil
}

Expand Down

0 comments on commit d0ed18b

Please sign in to comment.