Skip to content

Commit

Permalink
vrg: return an error when captureToRecoverFromIdentifier is nil
Browse files Browse the repository at this point in the history
Co-Authored-by: Annaraya Narasagond <[email protected]>
Signed-off-by: Raghavendra Talur <[email protected]>
  • Loading branch information
raghavendra-talur and asn1809 committed Dec 12, 2024
1 parent d90e5c2 commit 2955343
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions internal/controller/vrg_kubeobjects.go
Original file line number Diff line number Diff line change
Expand Up @@ -525,9 +525,7 @@ func (v *VRGInstance) kubeObjectsRecover(result *ctrl.Result, s3StoreProfile ram

captureToRecoverFromIdentifier := sourceVrg.Status.KubeObjectProtection.CaptureToRecoverFrom
if captureToRecoverFromIdentifier == nil {
v.log.Info("Kube objects capture-to-recover-from identifier nil")

return nil
return fmt.Errorf("kube objects source VRG capture-to-recover-from identifier nil: %v", err)
}

v.instance.Status.KubeObjectProtection.CaptureToRecoverFrom = captureToRecoverFromIdentifier
Expand Down

0 comments on commit 2955343

Please sign in to comment.