Skip to content

Commit 10c699d

Browse files
committed
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
1 parent 308633f commit 10c699d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

nova/conf/service.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@
8686
default=['osapi_compute', 'metadata'],
8787
help="List of APIs to be enabled by default."),
8888
cfg.ListOpt('enabled_ssl_apis',
89+
item_type=cfg.types.String(choices=['osapi_compute',
90+
'metadata']),
8991
default=[],
9092
help="""
9193
List of APIs with enabled SSL.

0 commit comments

Comments
 (0)