Skip to content

Commit

Permalink
api/__init__.py: Fix _get_paginated logic
Browse files Browse the repository at this point in the history
On 'node find' with --limit we are failing as we return
invalid object type.

Signed-off-by: Denys Fedoryshchenko <[email protected]>
  • Loading branch information
nuclearcat committed Nov 30, 2023
1 parent a5b43b5 commit 9c1abdb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion kernelci/api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,9 @@ def _get_paginated(self, input_params, path, offset=None, limit=None):
'offset': offset or None,
'limit': limit or None,
})
return self._get(path, params=params)
resp = self._get(path, params=params)
items = resp.json()['items']
return items

objs = []
offset = 0
Expand Down

0 comments on commit 9c1abdb

Please sign in to comment.