Skip to content

Commit

Permalink
keep API style consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
sperlingxx committed Apr 18, 2020
1 parent c5faa93 commit 4d35ba6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller.v1alpha3/experiment/experiment_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ func (r *ReconcileExperiment) terminateSuggestion(instance *experimentsv1alpha3.
suggestion.MarkSuggestionStatusSucceeded(suggestionController.SuggestionSucceededReason, msg)
log.Info("Mark suggestion succeeded...")

if err := r.Update(context.TODO(), suggestion); err != nil {
if err := r.UpdateSuggestion(suggestion, 0); err != nil {
return reconcile.Result{}, err
} else {
return reconcile.Result{Requeue: true}, nil
Expand Down

0 comments on commit 4d35ba6

Please sign in to comment.