summaryrefslogtreecommitdiffstats
path: root/awx_collection/plugins/lookup/tower_api.py
diff options
context:
space:
mode:
Diffstat (limited to 'awx_collection/plugins/lookup/tower_api.py')
-rw-r--r--awx_collection/plugins/lookup/tower_api.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/awx_collection/plugins/lookup/tower_api.py b/awx_collection/plugins/lookup/tower_api.py
index 067604fe79..25b912fce7 100644
--- a/awx_collection/plugins/lookup/tower_api.py
+++ b/awx_collection/plugins/lookup/tower_api.py
@@ -177,7 +177,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'))