Commit f6cdf65 1 parent fcf1ba0 commit f6cdf65 Copy full SHA for f6cdf65
File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 48
48
49
49
# Items per page when doing the API call
50
50
ITEMS_PER_PAGE = 50
51
+ # Ansible has a max limit of 25 Items per page when doing the API call
52
+ ANSIBLE_ITEMS_PER_PAGE = 25
Original file line number Diff line number Diff line change @@ -997,11 +997,11 @@ def get_ansible_unique_hosts():
997
997
for page in range (0 , num_of_pages ):
998
998
url = (
999
999
"https://console.redhat.com/api/tower-analytics/v1/host_explorer/?sort_by=host_count&limit="
1000
- + str (conf .ITEMS_PER_PAGE )
1000
+ + str (conf .ANSIBLE_ITEMS_PER_PAGE )
1001
1001
+ "&offset="
1002
1002
+ str (count )
1003
1003
)
1004
- count = count + conf .ITEMS_PER_PAGE
1004
+ count = count + conf .ANSIBLE_ITEMS_PER_PAGE
1005
1005
response = connection_request_post (url , request_data )
1006
1006
1007
1007
responseJson = response .json ()
You can’t perform that action at this time.
0 commit comments