summaryrefslogtreecommitdiffstats
path: root/awx_collection
diff options
context:
space:
mode:
authorJohn Westcott IV <john.westcott.iv@redhat.com>2020-07-06 15:55:55 +0200
committerJohn Westcott IV <john.westcott.iv@redhat.com>2020-07-14 15:38:26 +0200
commit381e9d2901a1603de260e30604b5b70e7ce983cc (patch)
treef981c4a51784e21210cfd8f4106981022724ce17 /awx_collection
parentOverhaul of the testing suite (diff)
downloadawx-381e9d2901a1603de260e30604b5b70e7ce983cc.tar.xz
awx-381e9d2901a1603de260e30604b5b70e7ce983cc.zip
Reverting commit 81b192c3b0520be0897f95e2630edab295e6bf24, we should fail only if we are > max_objects
Diffstat (limited to 'awx_collection')
-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'))