Enforce correct choice for [DEFAULT] enabled_ssl_apis

The [DEFAULT] enabled_ssl_apis option is supposed to contain the subset
(or the same set) of the [DEFULT] enabled_apis option.

Because we accept only the correct values for enabled_apis, we can do
the same for enabled_ssl_apis. This would allow users to notice any
wrong values which were ignored previously.

Change-Id: Ibba8f3ea307df3e81e18c3a75361e27a0f52701d
This commit is contained in:
Takashi Kajinami 2023-07-27 10:36:09 +09:00
parent 308633f93a
commit 10c699dbb0
1 changed files with 2 additions and 0 deletions

View File

@ -86,6 +86,8 @@ Possible Values:
default=['osapi_compute', 'metadata'],
help="List of APIs to be enabled by default."),
cfg.ListOpt('enabled_ssl_apis',
item_type=cfg.types.String(choices=['osapi_compute',
'metadata']),
default=[],
help="""
List of APIs with enabled SSL.