Skip to content

Commit

Permalink
Config options consistency for cell.py
Browse files Browse the repository at this point in the history
Checked the file for fix_opt_description_indentation,
fix_opt_registration_consistency, check_opt_group_and_type consistency
and removed the tags according to wiki.
https://wiki.openstack.org/wiki/ConfigOptionsConsistency

Blueprint centralize-config-options-newton

Change-Id: I4aece162bf2e0f4fc0cef6d778da0e552f05dfc7
  • Loading branch information
Anusha Unnam committed Jul 27, 2016
1 parent dd2f156 commit 1169756
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions nova/conf/cells.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
# needs:check_deprecation_status
# needs:check_opt_group_and_type
# needs:fix_opt_description_indentation
# needs:fix_opt_registration_consistency


# Copyright 2015 OpenStack Foundation
Expand All @@ -19,10 +16,14 @@
# License for the specific language governing permissions and limitations
# under the License.

import itertools

from oslo_config import cfg

cells_group = cfg.OptGroup('cells',
title='Cells Options',
help="""
Cells options allow you to use cells functionality in openstack
deployment.
""")

cells_opts = [
cfg.BoolOpt('enable',
Expand Down Expand Up @@ -535,22 +536,21 @@
""")
]

ALL_CELLS_OPTS = list(itertools.chain(
cells_opts,
mute_weigher_opts,
ram_weigher_opts,
weigher_opts,
cell_manager_opts,
cell_messaging_opts,
cell_rpc_driver_opts,
cell_scheduler_opts,
cell_state_manager_opts
))
ALL_CELLS_OPTS = (cells_opts +
mute_weigher_opts +
ram_weigher_opts +
weigher_opts +
cell_manager_opts +
cell_messaging_opts +
cell_rpc_driver_opts +
cell_scheduler_opts +
cell_state_manager_opts)


def register_opts(conf):
conf.register_opts(ALL_CELLS_OPTS, group="cells")
conf.register_group(cells_group)
conf.register_opts(ALL_CELLS_OPTS, group=cells_group)


def list_opts():
return {'cells': ALL_CELLS_OPTS}
return {cells_group: ALL_CELLS_OPTS}

0 comments on commit 1169756

Please sign in to comment.