Return early from a BSL controller (#2709)
Signed-off-by: Carlisia <carlisia@vmware.com>pull/2716/head
parent
3239b3e9d5
commit
13e1eeabfe
|
@ -47,6 +47,7 @@ func (r *BackupStorageLocationReconciler) Reconcile(req ctrl.Request) (ctrl.Resu
|
|||
locationList, err := velero.ListBackupStorageLocations(r.StorageLocation.Client, r.StorageLocation.Ctx, req.Namespace)
|
||||
if err != nil {
|
||||
log.WithError(err).Error("No backup storage locations found, at least one is required")
|
||||
return ctrl.Result{Requeue: true}, err
|
||||
}
|
||||
|
||||
var defaultFound bool
|
||||
|
|
Loading…
Reference in New Issue