mirror of
https://github.com/ansible/awx.git
synced 2026-02-26 07:26:03 -03:30
set all_pages to True by default in get_method
This commit is contained in:
@@ -186,7 +186,7 @@ class ApiV2(base.Base):
|
|||||||
return endpoint.get(id=int(value))
|
return endpoint.get(id=int(value))
|
||||||
options = self._cache.get_options(endpoint)
|
options = self._cache.get_options(endpoint)
|
||||||
identifier = next(field for field in options['search_fields'] if field in ('name', 'username', 'hostname'))
|
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):
|
def export_assets(self, **kwargs):
|
||||||
self._cache = page.PageCache()
|
self._cache = page.PageCache()
|
||||||
|
|||||||
Reference in New Issue
Block a user