Skip to content

Commit 195b8c8

Browse files
committed
Fix computeTagsDelta function
This patch modifies the tags comparison functions to fix a bug that was recently observed in prow e2e tests. - Fixes `computeTagsDelta` function for `pkg/db_instance/hooks.go` By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. Signed-off-by: Amine Hilaly <[email protected]>
1 parent 10ddefd commit 195b8c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/resource/db_instance/hooks.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ func computeTagsDelta(
532532
}
533533

534534
latestTags := map[string]string{}
535-
for _, tag := range desired {
535+
for _, tag := range latest {
536536
latestTags[*tag.Key] = *tag.Value
537537
}
538538

0 commit comments

Comments
 (0)