Skip to content

Commit

Permalink
fix: list err
Browse files Browse the repository at this point in the history
Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>
  • Loading branch information
vishal-chdhry committed Oct 31, 2024
1 parent a3743a6 commit 83e8f7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/storage/etcd/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func (o *objectStoreNamespaced[T]) List(ctx context.Context, namespace string) (
}
klog.InfoS("list resp resp=%+v", resp)
if len(resp.Kvs) == 0 {
return objects, errors.NewNotFound(o.gr, key)
return objects, nil
}
objects = make([]T, 0, len(resp.Kvs))
for _, v := range resp.Kvs {
Expand Down

0 comments on commit 83e8f7b

Please sign in to comment.