Skip to content

Commit

Permalink
Fix limit parameter in distributed api calls.
Browse files Browse the repository at this point in the history
  • Loading branch information
druizz90 committed May 23, 2019
1 parent ae1122e commit 939481f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions framework/wazuh/syscollector.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,8 @@ def get_items(func, agent_id, select, filters, limit, offset, search, sort, nest
"""
items = func(agent_id=agent_id, select=select, filters=filters,
limit=limit, offset=offset, search=search, sort=sort, nested=False)
if items == {}:
return
items = [items] if not array else items['items']

for item in items:
Expand Down

0 comments on commit 939481f

Please sign in to comment.