Skip to content

Commit 4871daa

Browse files
nfillotNicolas Fillot
authored andcommitted
[ArgoCD] Fixing webhook typo in case of error in GetManifests (#9671)
Signed-off-by: Nicolas Fillot <nfillot@weborama.com> Co-authored-by: Nicolas Fillot <nfillot@weborama.com> Signed-off-by: Michael Crenshaw <michael@crenshaw.dev>
1 parent 8db0e57 commit 4871daa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

util/webhook/webhook.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ func (a *ArgoCDWebhookHandler) storePreviouslyCachedManifests(app *v1alpha1.Appl
270270
return err
271271
}
272272
var cachedManifests cache.CachedManifestResponse
273-
if err := a.repoCache.GetManifests(change.shaBefore, &app.Spec.Source, &clusterInfo, app.Spec.Destination.Namespace, trackingMethod, appInstanceLabelKey, app.Name, &cachedManifests); err == nil {
273+
if err := a.repoCache.GetManifests(change.shaBefore, &app.Spec.Source, &clusterInfo, app.Spec.Destination.Namespace, trackingMethod, appInstanceLabelKey, app.Name, &cachedManifests); err != nil {
274274
return err
275275
}
276276
if err = a.repoCache.SetManifests(change.shaAfter, &app.Spec.Source, &clusterInfo, app.Spec.Destination.Namespace, trackingMethod, appInstanceLabelKey, app.Name, &cachedManifests); err != nil {

0 commit comments

Comments
 (0)