Add another hack from NOVA_GROUP to generate_cinder_opts.py
generate_cinder_opts.py doesn't really handle indirect variables in group names, so add manual handlig of NOVA_GROUP. Change-Id: I30a4666a058ebbf108fd42028fb0c39e5cb8bcae Closes-Bug: #1717008
This commit is contained in:
parent
966a1fdb2b
commit
db6564bb74
@ -288,12 +288,6 @@ def list_opts():
|
|||||||
itertools.chain(
|
itertools.chain(
|
||||||
cinder_keymgr_confkeymgr.key_mgr_opts,
|
cinder_keymgr_confkeymgr.key_mgr_opts,
|
||||||
)),
|
)),
|
||||||
('nova_group',
|
|
||||||
itertools.chain(
|
|
||||||
cinder_compute_nova.nova_opts,
|
|
||||||
cinder_compute_nova.nova_session_opts,
|
|
||||||
cinder_compute_nova.nova_auth_opts,
|
|
||||||
)),
|
|
||||||
('backend_defaults',
|
('backend_defaults',
|
||||||
itertools.chain(
|
itertools.chain(
|
||||||
cinder_volume_driver.volume_opts,
|
cinder_volume_driver.volume_opts,
|
||||||
@ -402,4 +396,10 @@ def list_opts():
|
|||||||
cinder_volume_drivers_zte_zteks.zte_opts,
|
cinder_volume_drivers_zte_zteks.zte_opts,
|
||||||
cinder_volume_manager.volume_backend_opts,
|
cinder_volume_manager.volume_backend_opts,
|
||||||
)),
|
)),
|
||||||
|
('nova',
|
||||||
|
itertools.chain(
|
||||||
|
cinder_compute_nova.nova_opts,
|
||||||
|
cinder_compute_nova.nova_session_opts,
|
||||||
|
cinder_compute_nova.nova_auth_opts,
|
||||||
|
)),
|
||||||
]
|
]
|
||||||
|
@ -18,6 +18,7 @@ import subprocess
|
|||||||
import textwrap
|
import textwrap
|
||||||
|
|
||||||
from cinder.volume import configuration
|
from cinder.volume import configuration
|
||||||
|
from cinder.compute import nova
|
||||||
|
|
||||||
OrderedDict = collections.OrderedDict
|
OrderedDict = collections.OrderedDict
|
||||||
|
|
||||||
@ -215,6 +216,8 @@ if __name__ == "__main__":
|
|||||||
if (group_name.endswith('SHARED_CONF_GROUP')
|
if (group_name.endswith('SHARED_CONF_GROUP')
|
||||||
or group_name.lower() == 'backend_defaults'):
|
or group_name.lower() == 'backend_defaults'):
|
||||||
group_name = configuration.SHARED_CONF_GROUP
|
group_name = configuration.SHARED_CONF_GROUP
|
||||||
|
if (group_name == 'NOVA_GROUP'):
|
||||||
|
group_name = nova.NOVA_GROUP
|
||||||
|
|
||||||
if group_name in registered_opts_dict:
|
if group_name in registered_opts_dict:
|
||||||
line = key + "." + formatted_opt
|
line = key + "." + formatted_opt
|
||||||
|
Loading…
x
Reference in New Issue
Block a user