Skip to content

Commit

Permalink
[ArgoCD] Fixing webhook typo in case of error in GetManifests (#9671)
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolas Fillot <nfillot@weborama.com>

Co-authored-by: Nicolas Fillot <nfillot@weborama.com>
Signed-off-by: Michael Crenshaw <michael@crenshaw.dev>
  • Loading branch information
2 people authored and crenshaw-dev committed Jun 23, 2022
1 parent 8db0e57 commit 4871daa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/webhook/webhook.go
Expand Up @@ -270,7 +270,7 @@ func (a *ArgoCDWebhookHandler) storePreviouslyCachedManifests(app *v1alpha1.Appl
return err
}
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
}
if err = a.repoCache.SetManifests(change.shaAfter, &app.Spec.Source, &clusterInfo, app.Spec.Destination.Namespace, trackingMethod, appInstanceLabelKey, app.Name, &cachedManifests); err != nil {
Expand Down

0 comments on commit 4871daa

Please sign in to comment.