Skip to content

Commit

Permalink
return the revision we couldn't set instead of an invalid revision
Browse files Browse the repository at this point in the history
  • Loading branch information
SaaldjorMike committed Aug 29, 2024
1 parent 3442328 commit 5b7b807
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/humiocluster_annotations.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func (r *HumioClusterReconciler) incrementHumioClusterPodRevision(ctx context.Co
return r.Update(ctx, hc)
})
if err != nil {
return -1, fmt.Errorf("unable to set annotation %s on HumioCluster: %w", revisionKey, err)
return revisionValue, fmt.Errorf("unable to set annotation %s on HumioCluster: %w", revisionKey, err)
}
return revisionValue, nil
}
Expand Down

0 comments on commit 5b7b807

Please sign in to comment.