Skip to content

Commit b6fb409

Browse files
committed
Fixing getSidPdbEdition function
1 parent bb81b8e commit b6fb409

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

controllers/database/singleinstancedatabase_controller.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1498,9 +1498,9 @@ func (r *SingleInstanceDatabaseReconciler) createOrReplaceSVC(ctx context.Contex
14981498
sid := m.Spec.Sid
14991499
if m.Spec.Image.PrebuiltDB {
15001500
edition := ""
1501-
sid, pdbName, edition = dbcommons.GetSidPdbEdition(r, r.Config, ctx, req)
1502-
if sid == "" || pdbName == "" || edition == "" {
1503-
return requeueN, nil
1501+
_, _, edition, err := dbcommons.GetSidPdbEdition(r, r.Config, ctx, ctrl.Request{NamespacedName: types.NamespacedName{Namespace: m.Namespace, Name: m.Name}})
1502+
if err != nil {
1503+
return requeueY, err
15041504
}
15051505
m.Status.Edition = cases.Title(language.English).String(edition)
15061506
}

0 commit comments

Comments
 (0)