set all_pages to True by default in get_method

This commit is contained in:
Jose Angel Morena 2022-05-11 19:52:32 +02:00
parent 0787cb4fc2
commit eb2fca86b6

View File

@ -186,7 +186,7 @@ class ApiV2(base.Base):
return endpoint.get(id=int(value))
options = self._cache.get_options(endpoint)
identifier = next(field for field in options['search_fields'] if field in ('name', 'username', 'hostname'))
return endpoint.get(**{identifier: value})
return endpoint.get(**{identifier: value},all_pages=True)
def export_assets(self, **kwargs):
self._cache = page.PageCache()