Add oslo.config entry point
This change will allow generating a config sample using the oslo.config generator. Generating an os_win config sample may be requested by using: oslo-config-generator --namespace os_win Closes-Bug: #1709648 Change-Id: Icc39a472cb05bfd0bcb673959b40b0d2e6e89077
This commit is contained in:
parent
c5ce9a6cf6
commit
2f808ecb10
@ -15,6 +15,8 @@
|
||||
|
||||
from oslo_config import cfg
|
||||
|
||||
os_win_group = 'os_win'
|
||||
|
||||
os_win_opts = [
|
||||
cfg.StrOpt('hbaapi_lib_path',
|
||||
default='hbaapi.dll',
|
||||
@ -30,4 +32,8 @@ os_win_opts = [
|
||||
]
|
||||
|
||||
CONF = cfg.CONF
|
||||
CONF.register_opts(os_win_opts, 'os_win')
|
||||
CONF.register_opts(os_win_opts, os_win_group)
|
||||
|
||||
|
||||
def list_opts():
|
||||
return [(os_win_group, os_win_opts)]
|
||||
|
Loading…
Reference in New Issue
Block a user