From 4511b922aeb6b27d349a9e3e625df9a65c8c967a Mon Sep 17 00:00:00 2001 From: avallete Date: Fri, 29 Nov 2024 15:48:14 +0100 Subject: [PATCH] wip: skip it --- pkg/config/updater.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pkg/config/updater.go b/pkg/config/updater.go index d31661f4e..278e7f8c3 100644 --- a/pkg/config/updater.go +++ b/pkg/config/updater.go @@ -124,11 +124,9 @@ func (u *ConfigUpdater) UpdateAuthConfig(ctx context.Context, projectRef string, return nil } } - var updateBody v1API.UpdateAuthConfigBody + var updateBody = c.ToUpdateAuthConfigBody() if u.skipSecrets { - updateBody = c.StripUpdateBodySecrets(c.ToUpdateAuthConfigBody()) - } else { - updateBody = c.ToUpdateAuthConfigBody() + updateBody = c.StripUpdateBodySecrets(updateBody) } if resp, err := u.client.V1UpdateAuthServiceConfigWithResponse(ctx, projectRef, updateBody); err != nil { return errors.Errorf("failed to update Auth config: %w", err)