Skip to content

Commit

Permalink
Update controllers/nstemplatetier/nstemplatetier_controller.go
Browse files Browse the repository at this point in the history
Co-authored-by: Matous Jobanek <mjobanek@redhat.com>
  • Loading branch information
mfrancisc and MatousJobanek authored Jan 13, 2025
1 parent 7efa4c4 commit 9f55b2b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions controllers/nstemplatetier/nstemplatetier_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,7 @@ func (r *Reconciler) ensureTTRforTemplate(ctx context.Context, nsTmplTier *toolc
logger.Info("TTR CR not found", "tierTemplateRevision.Name", tierTemplateRevisionName)
// let's create one
ttrName, err := r.createNewTierTemplateRevision(ctx, nsTmplTier, tierTemplate)
if err != nil {
return false, "", err
}
// new ttr created
return true, ttrName, nil
return true, ttrName, err
} else {
// something wrong happened
return false, "", err
Expand Down

0 comments on commit 9f55b2b

Please sign in to comment.