From 781d77957eae3ea600bc58dec3970efbcb2808bb Mon Sep 17 00:00:00 2001 From: JM Faircloth Date: Fri, 24 Jan 2025 11:00:00 -0600 Subject: [PATCH] db: return success response on static role create/update --- builtin/logical/database/path_roles.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/builtin/logical/database/path_roles.go b/builtin/logical/database/path_roles.go index f565e90ffa8a..1e93a5023460 100644 --- a/builtin/logical/database/path_roles.go +++ b/builtin/logical/database/path_roles.go @@ -782,6 +782,10 @@ func (b *databaseBackend) pathStaticRoleCreateUpdate(ctx context.Context, req *l return nil, err } b.dbEvent(ctx, fmt.Sprintf("static-role-%s", req.Operation), req.Path, name, true) + + if len(response.Warnings) == 0 { + return nil, nil + } return response, nil }