Skip to content

Commit

Permalink
fix bug related to #377 after merge main
Browse files Browse the repository at this point in the history
  • Loading branch information
bfabricio committed Dec 23, 2024
1 parent a426e91 commit 7c42744
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/databaseclaim/databaseclaim.go
Original file line number Diff line number Diff line change
Expand Up @@ -1128,7 +1128,7 @@ func (r *DatabaseClaimReconciler) createDatabaseAndExtensions(ctx context.Contex

func (r *DatabaseClaimReconciler) manageUserAndExtensions(ctx context.Context, reqInfo *requestInfo, logger logr.Logger, dbClient dbclient.Clienter, dbClaim *v1.DatabaseClaim, operationalMode ModeEnum) error {

status := dbClaim.Status.NewDB
status := &dbClaim.Status.NewDB
dbName := dbClaim.Spec.DatabaseName
baseUsername := dbClaim.Spec.Username

Expand Down Expand Up @@ -1169,7 +1169,7 @@ func (r *DatabaseClaimReconciler) manageUserAndExtensions(ctx context.Context, r
if err := dbClient.UpdateUser(oldUsername+dbuser.SuffixA, dbu.GetUserA(), baseUsername, userPassword); err != nil {
return err
}
r.statusManager.UpdateUserStatus(&status, reqInfo, dbu.GetUserA(), userPassword)
r.statusManager.UpdateUserStatus(status, reqInfo, dbu.GetUserA(), userPassword)
// updating user b
userPassword, err = r.generatePassword()
if err != nil {
Expand Down Expand Up @@ -1200,7 +1200,7 @@ func (r *DatabaseClaimReconciler) manageUserAndExtensions(ctx context.Context, r
return err
}

r.statusManager.UpdateUserStatus(&status, reqInfo, nextUser, userPassword)
r.statusManager.UpdateUserStatus(status, reqInfo, nextUser, userPassword)
}

// baseUsername = myuser
Expand Down

0 comments on commit 7c42744

Please sign in to comment.