Add oslo.config entry point

This change will allow generating a config sample using the
oslo.config generator.

Generating a compute-hyperv config sample may be requested by
using: oslo-config-generator --namespace compute_hyperv

Closes-Bug: #1731511

Change-Id: Icc39a472cb05bfd0bcb673959b40b0d2e6e89077
This commit is contained in:
Lucian Petrut 2017-11-10 19:21:32 +02:00
parent ac867cf27b
commit 7575b76d5b
2 changed files with 8 additions and 0 deletions

View File

@ -56,3 +56,7 @@ hyperv_opts = [
CONF = nova.conf.CONF
CONF.register_opts(hyperv_opts, 'hyperv')
def list_opts():
return [('hyperv', hyperv_opts)]

View File

@ -27,6 +27,10 @@ packages =
nova
nova.virt.compute_hyperv
[entry_points]
oslo.config.opts =
compute_hyperv = compute_hyperv.nova.conf:list_opts
[build_sphinx]
source-dir = doc/source
build-dir = doc/build