Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
parametalol committed Nov 22, 2023
1 parent 2c4eb12 commit f7c8b82
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions internal/dinosaur/pkg/workers/dinosaurmgrs/dinosaurs_mgr.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,9 @@ func (k *DinosaurManager) Reconcile() []error {
}

// cleaning up expired dinosaurs
expiredDinosaursError := k.dinosaurService.DeprovisionExpiredDinosaurs()
if expiredDinosaursError != nil {
wrappedError := errors.Wrap(expiredDinosaursError, "failed to deprovision expired Central instances")
encounteredErrors = append(encounteredErrors, wrappedError)
if svcErr := k.dinosaurService.DeprovisionExpiredDinosaurs(); svcErr != nil {
encounteredErrors = append(encounteredErrors,
errors.Wrap(svcErr, "failed to deprovision expired Central instances"))
}

return encounteredErrors
Expand Down

0 comments on commit f7c8b82

Please sign in to comment.