From a588e63e3cb9db91fd491c0d7371c87867861aa7 Mon Sep 17 00:00:00 2001 From: Nicolas Fillot Date: Thu, 23 Jun 2022 15:26:28 +0200 Subject: [PATCH] [ArgoCD] Fixing webhook typo in case of error in GetManifests (#9671) Signed-off-by: Nicolas Fillot Co-authored-by: Nicolas Fillot --- util/webhook/webhook.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/webhook/webhook.go b/util/webhook/webhook.go index 5e031dae097c7..2d4dcf39367e8 100644 --- a/util/webhook/webhook.go +++ b/util/webhook/webhook.go @@ -286,7 +286,7 @@ func (a *ArgoCDWebhookHandler) storePreviouslyCachedManifests(app *v1alpha1.Appl cache.LogDebugManifestCacheKeyFields("getting manifests cache", "webhook app revision changed", change.shaBefore, &app.Spec.Source, &clusterInfo, app.Spec.Destination.Namespace, trackingMethod, appInstanceLabelKey, app.Name) var cachedManifests cache.CachedManifestResponse - if err := a.repoCache.GetManifests(change.shaBefore, &app.Spec.Source, &clusterInfo, app.Spec.Destination.Namespace, trackingMethod, appInstanceLabelKey, app.Name, &cachedManifests); err == nil { + if err := a.repoCache.GetManifests(change.shaBefore, &app.Spec.Source, &clusterInfo, app.Spec.Destination.Namespace, trackingMethod, appInstanceLabelKey, app.Name, &cachedManifests); err != nil { return err }