Skip to content

Commit 5595828

Browse files
author
Joshua Reed
committed
Mild cleanup.
1 parent f8419f8 commit 5595828

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

controllers/utils/base_reconciler.go

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -340,17 +340,6 @@ func (r *ReconciliationRunner) RequeueWithMessage(msg string, keysAndValues ...i
340340
return ctrl.Result{RequeueAfter: RequeueTimeout}, nil
341341
}
342342

343-
// RequeueWithMessageStage is a convenience method to log requeue message and then return a result with RequeueAfter set.
344-
func (r *ReconciliationRunner) RequeueWithMessageStage(msg string, keysAndValues ...interface{}) CloudStackReconcilerMethod {
345-
return func() (ctrl.Result, error) {
346-
if !strings.Contains(strings.ToLower(msg), "requeue") {
347-
msg = msg + " Requeuing."
348-
}
349-
r.Log.Info(msg, keysAndValues...)
350-
return ctrl.Result{RequeueAfter: RequeueTimeout}, nil
351-
}
352-
}
353-
354343
// ReturnWrappedError is a convenience method to log requeue message and then return a result with RequeueAfter set.
355344
func (r *ReconciliationRunner) ReturnWrappedError(err error, msg string) (ctrl.Result, error) {
356345
return ctrl.Result{}, errors.Wrap(err, msg)

0 commit comments

Comments
 (0)