Skip to content

Commit 068ca89

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 1287d24 commit 068ca89

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
@@ -283,7 +283,7 @@ func (a *ArgoCDWebhookHandler) storePreviouslyCachedManifests(app *v1alpha1.Appl
283283
return err
284284
}
285285
var cachedManifests cache.CachedManifestResponse
286-
if err := a.repoCache.GetManifests(change.shaBefore, &app.Spec.Source, &clusterInfo, app.Spec.Destination.Namespace, trackingMethod, appInstanceLabelKey, app.Name, &cachedManifests); err == nil {
286+
if err := a.repoCache.GetManifests(change.shaBefore, &app.Spec.Source, &clusterInfo, app.Spec.Destination.Namespace, trackingMethod, appInstanceLabelKey, app.Name, &cachedManifests); err != nil {
287287
return err
288288
}
289289
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)