Skip to content

Commit 750288a

Browse files
committed
Setting noobaa account state "rejected"
Missing default_resource parameter which is mandatory parameter for account creation, should mark the nooobaa account status as rejected Fixes: #https://issues.redhat.com/browse/DFBUGS-1297 Signed-off-by: Vinayak Hariharmath <[email protected]>
1 parent 15f7a29 commit 750288a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/noobaaaccount/reconciler.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,8 @@ func (r *Reconciler) UpdateNooBaaAccount() error {
428428

429429
err := r.NBClient.UpdateAccountS3Access(updateAccountS3AccessParams)
430430
if err != nil {
431-
return err
431+
return util.NewPersistentError("InvalidUpdateAccountS3AccessParams",
432+
fmt.Sprintf("%v", err.Error()))
432433
}
433434
log.Infof("✅ Successfully updated account %q", r.NooBaaAccount.Name)
434435
}

0 commit comments

Comments
 (0)