Skip to content

Commit

Permalink
tweak
Browse files Browse the repository at this point in the history
Signed-off-by: makocchi-git <[email protected]>
  • Loading branch information
makocchi-git committed Jun 11, 2024
1 parent dc66d9a commit 01dac40
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions controllers/lendingconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,9 @@ func (config *LendingConfig) UpdateSchedules(ctx context.Context, reconciler *Le
}
if config.Spec.ScheduleMode == ScheduleModeNever {
logger.Info("Allow always deactivate resources (SchedulerMode=%s)", ScheduleModeNever)
lendingReferences, err := config.DeactivateTargetResources(ctx, reconciler)
if err != nil {
if _, err := config.DeactivateTargetResources(ctx, reconciler); err != nil {
return err
}
for _, lr := range lendingReferences {
logger.Info(fmt.Sprintf("Deactivated %s %s/%s", lr.APIVersion, lr.Kind, lr.Name))
}
return nil
}

Expand Down

0 comments on commit 01dac40

Please sign in to comment.