Skip to content

Commit

Permalink
Update pkg/storage/inmemory/ephr.go
Browse files Browse the repository at this point in the history
Signed-off-by: Vishal Choudhary <[email protected]>
  • Loading branch information
vishal-chdhry authored Sep 12, 2024
1 parent 1d9ed4c commit cf76f29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/storage/inmemory/ephr.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func (e *ephrdb) List(ctx context.Context, namespace string) ([]reportsv1.Epheme
res := make([]reportsv1.EphemeralReport, 0)

for k, v := range e.db {
if namespace == "" || strings.HasPrefix(strings.TrimPrefix(k, "ephr/"),, namespace) {
if namespace == "" || strings.HasPrefix(strings.TrimPrefix(k, "ephr/"), namespace) {
res = append(res, v)
klog.Infof("value found for prefix:%s, key:%s", namespace, k)
}
Expand Down

0 comments on commit cf76f29

Please sign in to comment.