diff --git a/awx_collection/plugins/lookup/tower_api.py b/awx_collection/plugins/lookup/tower_api.py index 265f4ced07..4b5de269e6 100644 --- a/awx_collection/plugins/lookup/tower_api.py +++ b/awx_collection/plugins/lookup/tower_api.py @@ -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'))