mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 10:00:01 -03:30
Making the count check >= instead of just >
This commit is contained in:
parent
a9c16a6c90
commit
d793f0bc99
@ -144,7 +144,7 @@ class LookupModule(LookupBase):
|
||||
)
|
||||
|
||||
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(
|
||||
'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'))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user