Skip to content

Commit

Permalink
[ArgoCD] Fixing webhook typo in case of error in GetManifests
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolas Fillot <nfillot@weborama.com>
  • Loading branch information
Nicolas Fillot committed Jun 15, 2022
1 parent 56eb095 commit 4cec93d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/webhook/webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,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 4cec93d

Please # to comment.