Merge "Stop overriding default value for some limit options"

This commit is contained in:
Zuul 2023-04-11 16:28:26 +00:00 committed by Gerrit Code Review
commit 041da00755
3 changed files with 13 additions and 9 deletions

View File

@ -124,15 +124,15 @@
# [*api_result_limit*]
# (optional) Maximum number of objects (Swift containers/objects or images)
# to display on a single page.
# Defaults to 1000.
# Defaults to undef.
#
# [*api_result_page_size*]
# (optional) Maximum number of objects retrieved by a single request.
# Defaults to 20.
# Defaults to undef.
#
# [*dropdown_max_items*]
# (optional) Specify a maximum number of items to display in a dropdown.
# Defaults to 30
# Defaults to undef.
#
# [*log_handlers*]
# (optional) Log handlers. Defaults to ['file']
@ -590,9 +590,9 @@ class horizon(
$secondary_endpoint_type = undef,
$openstack_keystone_endpoint_type = undef,
$available_regions = undef,
$api_result_limit = 1000,
$api_result_page_size = 20,
$dropdown_max_items = 30,
$api_result_limit = undef,
$api_result_page_size = undef,
$dropdown_max_items = undef,
$log_handlers = ['file'],
$log_level = 'INFO',
$django_log_level = undef,

View File

@ -76,9 +76,6 @@ describe 'horizon' do
" 'enable_ha_router': False,",
" 'enable_quotas': True,",
" 'enable_security_group': True,",
'API_RESULT_LIMIT = 1000',
'API_RESULT_PAGE_SIZE = 20',
'DROPDOWN_MAX_ITEMS = 30',
'TIME_ZONE = "UTC"',
" 'handlers': ['file'],",
'COMPRESS_OFFLINE = True',

View File

@ -622,14 +622,21 @@ OPENSTACK_KEYSTONE_ENDPOINT_TYPE = "<%= @openstack_keystone_endpoint_type %>"
# to paginate results.
#API_RESULT_LIMIT = 1000
#API_RESULT_PAGE_SIZE = 20
<% if !(@api_result_limit.nil?) -%>
API_RESULT_LIMIT = <%= @api_result_limit %>
<% end -%>
<% if !(@api_result_page_size.nil?) -%>
API_RESULT_PAGE_SIZE = <%= @api_result_page_size %>
<% end -%>
# The size of chunk in bytes for downloading objects from Swift
#SWIFT_FILE_TRANSFER_CHUNK_SIZE = 512 * 1024
# Specify a maximum number of items to display in a dropdown.
#DROPDOWN_MAX_ITEMS = 30
<% if !(@dropdown_max_items.nil?) -%>
DROPDOWN_MAX_ITEMS = <%= @dropdown_max_items %>
<% end -%>
# The timezone of the server. This should correspond with the timezone
# of your entire OpenStack installation, and hopefully be in UTC.