-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
patches/0032-Handle-nil-err-carefully-in-markTagsAllNotComputedFo.patch
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
From: Anton Tayanovskyy <[email protected]> | ||
Date: Tue, 31 Oct 2023 16:38:06 -0400 | ||
Subject: [PATCH 32/32] Handle nil/err carefully in | ||
markTagsAllNotComputedForResources | ||
|
||
|
||
diff --git a/shim/shim.go b/shim/shim.go | ||
index 2073270778..8c3e7c7a0b 100644 | ||
--- a/shim/shim.go | ||
+++ b/shim/shim.go | ||
@@ -17,10 +17,12 @@ type UpstreamProvider struct { | ||
|
||
func NewUpstreamProvider(ctx context.Context) (UpstreamProvider, error) { | ||
primary, err := provider.New(ctx) | ||
- markTagsAllNotComputedForResources(primary) | ||
if err != nil { | ||
return UpstreamProvider{}, err | ||
} | ||
+ if primary != nil { | ||
+ markTagsAllNotComputedForResources(primary) | ||
+ } | ||
pf := fwprovider.New(primary) | ||
return UpstreamProvider{ | ||
SDKV2Provider: primary, |