Skip to content

Commit

Permalink
db: return success response on static role create/update (#29407)
Browse files Browse the repository at this point in the history
  • Loading branch information
fairclothjm authored Jan 24, 2025
1 parent 19adf7c commit 28b2746
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions builtin/logical/database/path_roles.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 28b2746

Please sign in to comment.