From 9f58744fe5004bc569579349ccde4f199386a2d7 Mon Sep 17 00:00:00 2001 From: Roman Lytvyn Date: Fri, 4 Jun 2021 13:54:41 +0200 Subject: [PATCH] fix: use correct status code for update --- controllers/oauth2client_controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/oauth2client_controller.go b/controllers/oauth2client_controller.go index 6c519f2..3ca6357 100644 --- a/controllers/oauth2client_controller.go +++ b/controllers/oauth2client_controller.go @@ -267,7 +267,7 @@ func (r *OAuth2ClientReconciler) updateRegisteredOAuth2Client(ctx context.Contex oauth2client, err := c.ToOAuth2ClientJSON() if err != nil { - if updateErr := r.updateReconciliationStatusError(ctx, c, hydrav1alpha1.StatusRegistrationFailed, err); updateErr != nil { + if updateErr := r.updateReconciliationStatusError(ctx, c, hydrav1alpha1.StatusUpdateFailed, err); updateErr != nil { return updateErr } return nil