1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-28 02:25:27 +03:00

set all_pages to True by default in get_method

This commit is contained in:
Jose Angel Morena 2022-05-11 19:54:26 +02:00
parent eb2fca86b6
commit 44986fad36

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},all_pages=True)
return endpoint.get(**{identifier: value}, all_pages=True)
def export_assets(self, **kwargs):
self._cache = page.PageCache()