Skip to content

Commit

Permalink
Merge pull request #284 from booxter/error-uncapitalize
Browse files Browse the repository at this point in the history
style: Uncapitalize error messages
  • Loading branch information
openshift-merge-bot[bot] authored May 27, 2024
2 parents b9dbbf8 + 668c4e4 commit 5a88f98
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions controllers/ovndbcluster_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ func (r *OVNDBClusterReconciler) reconcileNormal(ctx context.Context, instance *
func getPodIPInNetwork(ovnPod corev1.Pod, namespace string, networkAttachment string) (string, error) {
netStat, err := nad.GetNetworkStatusFromAnnotation(ovnPod.Annotations)
if err != nil {
err = fmt.Errorf("Error while getting the Network Status for pod %s: %w", ovnPod.Name, err)
err = fmt.Errorf("error while getting the Network Status for pod %s: %w", ovnPod.Name, err)
return "", err
}
for _, v := range netStat {
Expand All @@ -619,7 +619,7 @@ func getPodIPInNetwork(ovnPod corev1.Pod, namespace string, networkAttachment st
}
}
// If this is reached it means that no IP was found, construct error and return
err = fmt.Errorf("Error while getting IP address from pod %s in network %s, IP is empty", ovnPod.Name, networkAttachment)
err = fmt.Errorf("error while getting IP address from pod %s in network %s, IP is empty", ovnPod.Name, networkAttachment)
return "", err
}

Expand Down Expand Up @@ -708,7 +708,7 @@ func (r *OVNDBClusterReconciler) reconcileServices(
svcLabels,
)
if err != nil {
err = fmt.Errorf("Error while deleting service with name %s: %w", fullServiceName, err)
err = fmt.Errorf("error while deleting service with name %s: %w", fullServiceName, err)
return ctrl.Result{}, err
}
}
Expand Down

0 comments on commit 5a88f98

Please sign in to comment.