Merge "api and availablity_zone opt definition consistent"
This commit is contained in:
commit
768e2ced48
@ -427,15 +427,7 @@ ALL_OPTS = (auth_opts +
|
||||
|
||||
|
||||
def register_opts(conf):
|
||||
conf.register_opts(auth_opts)
|
||||
conf.register_opts(metadata_opts)
|
||||
conf.register_opt(file_opt)
|
||||
conf.register_opts(osapi_opts)
|
||||
conf.register_opt(allow_instance_snapshots_opt)
|
||||
conf.register_opt(osapi_hide_opt)
|
||||
conf.register_opt(fping_path_opt)
|
||||
conf.register_opts(os_network_opts)
|
||||
conf.register_opt(enable_inst_pw_opt)
|
||||
conf.register_opts(ALL_OPTS)
|
||||
|
||||
|
||||
def list_opts():
|
||||
|
@ -16,23 +16,19 @@
|
||||
|
||||
from oslo_config import cfg
|
||||
|
||||
internal_service_availability_zone = cfg.StrOpt(
|
||||
'internal_service_availability_zone',
|
||||
default='internal',
|
||||
help='The availability_zone to show internal services under')
|
||||
|
||||
default_availability_zone = cfg.StrOpt(
|
||||
'default_availability_zone',
|
||||
default='nova',
|
||||
help='Default compute node availability_zone')
|
||||
|
||||
ALL_OPTS = [internal_service_availability_zone,
|
||||
default_availability_zone]
|
||||
availability_zone_opts = [
|
||||
cfg.StrOpt('internal_service_availability_zone',
|
||||
default='internal',
|
||||
help='The availability_zone to show internal services under'),
|
||||
cfg.StrOpt('default_availability_zone',
|
||||
default='nova',
|
||||
help='Default compute node availability_zone'),
|
||||
]
|
||||
|
||||
|
||||
def register_opts(conf):
|
||||
conf.register_opts(ALL_OPTS)
|
||||
conf.register_opts(availability_zone_opts)
|
||||
|
||||
|
||||
def list_opts():
|
||||
return {'DEFAULT': ALL_OPTS}
|
||||
return {'DEFAULT': availability_zone_opts}
|
||||
|
Loading…
Reference in New Issue
Block a user