mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 01:17:37 -02:30
Reverting commit 81b192c3b0520be0897f95e2630edab295e6bf24, we should fail only if we are > max_objects
This commit is contained in:
@@ -177,7 +177,7 @@ class LookupModule(LookupBase):
|
|||||||
)
|
)
|
||||||
|
|
||||||
if self.get_option('return_all') and 'results' in return_data:
|
if self.get_option('return_all') and 'results' in return_data:
|
||||||
if return_data['count'] >= self.get_option('max_objects'):
|
if return_data['count'] > self.get_option('max_objects'):
|
||||||
raise AnsibleError(
|
raise AnsibleError(
|
||||||
'List view at {0} returned {1} objects, which is more than the maximum allowed '
|
'List view at {0} returned {1} objects, which is more than the maximum allowed '
|
||||||
'by max_objects, {2}'.format(terms[0], return_data['count'], self.get_option('max_objects'))
|
'by max_objects, {2}'.format(terms[0], return_data['count'], self.get_option('max_objects'))
|
||||||
|
|||||||
Reference in New Issue
Block a user