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:
Lucian Petrut 2017-11-10 13:53:51 +02:00
parent c5ce9a6cf6
commit 2f808ecb10
2 changed files with 11 additions and 1 deletions

View File

@ -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)]

View File

@ -22,6 +22,10 @@ classifier =
packages =
os_win
[entry_points]
oslo.config.opts =
os_win = os_win.conf:list_opts
[build_sphinx]
source-dir = doc/source
build-dir = doc/build