oslo-config-generator: Fix ValueError

This fixes how the opts data is formatted to fix auto-generation of
config file using oslo-config-generator with oslo.limit entry point.

Closes-Bug: #1962406
Change-Id: I176a7b2b8e2edb50659783a2139c3cc13e8f2f53
This commit is contained in:
Takashi Kajinami 2022-02-28 01:23:14 +09:00
parent bf9deb10c3
commit ce5aa7dcca
2 changed files with 10 additions and 3 deletions

View File

@ -44,9 +44,9 @@ def list_opts():
return [(_option_group,
copy.deepcopy(_options) +
loading.get_session_conf_options() +
loading.get_auth_plugin_conf_options('password'),
loading.get_auth_plugin_conf_options('v2password'),
loading.get_auth_plugin_conf_options('v3password'),
loading.get_auth_plugin_conf_options('password') +
loading.get_auth_plugin_conf_options('v2password') +
loading.get_auth_plugin_conf_options('v3password') +
loading.get_adapter_conf_options(include_deprecated=False)
)]

View File

@ -0,0 +1,7 @@
---
fixes:
- |
`bug 1962406` <https://bugs.launchpad.net/oslo.limit/+bug/1962406>`_:
Fixed the wrong format of options data, which was causing failure with
``oslo-config-generator`` command if the ``oslo.limit`` entry point is
included.