Skip to content

Commit

Permalink
Add missing space in error
Browse files Browse the repository at this point in the history
Fix 4 instances of missing space:

     belonging toVolumeReplicationGroup

Signed-off-by: Nir Soffer <[email protected]>
  • Loading branch information
nirs authored and BenamarMk committed Jan 27, 2025
1 parent acc70c7 commit 301dabf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/controller/vrg_volrep.go
Original file line number Diff line number Diff line change
Expand Up @@ -1918,7 +1918,7 @@ func (v *VRGInstance) addProtectedAnnotationForPVC(pvc *corev1.PersistentVolumeC
// v.updateProtectedPVCCondition(pvc.Name, PVCError, msg)
log.Error(err, "Failed to update PersistentVolumeClaim annotation")

return fmt.Errorf("failed to update PersistentVolumeClaim (%s/%s) annotation (%s) belonging to"+
return fmt.Errorf("failed to update PersistentVolumeClaim (%s/%s) annotation (%s) belonging to "+
"VolumeReplicationGroup (%s/%s), %w",
pvc.Namespace, pvc.Name, pvcVRAnnotationProtectedKey, v.instance.Namespace, v.instance.Name, err)
}
Expand All @@ -1936,7 +1936,7 @@ func (v *VRGInstance) addArchivedAnnotationForPVC(pvc *corev1.PersistentVolumeCl
if err := v.reconciler.Update(v.ctx, pvc); err != nil {
log.Error(err, "Failed to update PersistentVolumeClaim annotation")

return fmt.Errorf("failed to update PersistentVolumeClaim (%s/%s) annotation (%s) belonging to"+
return fmt.Errorf("failed to update PersistentVolumeClaim (%s/%s) annotation (%s) belonging to "+
"VolumeReplicationGroup (%s/%s), %w",
pvc.Namespace, pvc.Name, pvcVRAnnotationArchivedKey, v.instance.Namespace, v.instance.Name, err)
}
Expand All @@ -1945,7 +1945,7 @@ func (v *VRGInstance) addArchivedAnnotationForPVC(pvc *corev1.PersistentVolumeCl
if err != nil {
log.Error(err, "Failed to get PV to add archived annotation")

return fmt.Errorf("failed to update PersistentVolume (%s) annotation (%s) belonging to"+
return fmt.Errorf("failed to update PersistentVolume (%s) annotation (%s) belonging to "+
"VolumeReplicationGroup (%s/%s), %w",
pv.Name, pvcVRAnnotationArchivedKey, v.instance.Namespace, v.instance.Name, err)
}
Expand All @@ -1958,7 +1958,7 @@ func (v *VRGInstance) addArchivedAnnotationForPVC(pvc *corev1.PersistentVolumeCl
if err := v.reconciler.Update(v.ctx, &pv); err != nil {
log.Error(err, "Failed to update PersistentVolume annotation")

return fmt.Errorf("failed to update PersistentVolume (%s) annotation (%s) belonging to"+
return fmt.Errorf("failed to update PersistentVolume (%s) annotation (%s) belonging to "+
"VolumeReplicationGroup (%s/%s), %w",
pvc.Name, pvcVRAnnotationArchivedKey, v.instance.Namespace, v.instance.Name, err)
}
Expand Down

0 comments on commit 301dabf

Please sign in to comment.