Make use of already registered group
service_available_group - We don't need this group in plugin code because it is already being registered in tempest config and since we are using the same config object from tempest, we can make use of this group directly here instead of using a new group with the same name. closes-Bug: #1661213 Change-Id: Iabd4a7c356b1f454585054218bf07801e0339bde
This commit is contained in:
parent
f9b4dae7a9
commit
e8982db91f
|
@ -15,10 +15,7 @@
|
|||
|
||||
from oslo_config import cfg
|
||||
|
||||
service_available_group = cfg.OptGroup(name="service_available",
|
||||
title="Available OpenStack Services")
|
||||
|
||||
ServiceAvailableGroup = [
|
||||
service_option = [
|
||||
cfg.BoolOpt("murano",
|
||||
default=True,
|
||||
help="Whether or not murano is expected to be available"),
|
||||
|
|
|
@ -31,8 +31,8 @@ class MuranoTempestPlugin(plugins.TempestPlugin):
|
|||
|
||||
def register_opts(self, conf):
|
||||
config.register_opt_group(
|
||||
conf, config_application_catalog.service_available_group,
|
||||
config_application_catalog.ServiceAvailableGroup)
|
||||
conf, config.service_available_group,
|
||||
config_application_catalog.service_option)
|
||||
config.register_opt_group(
|
||||
conf, config_application_catalog.application_catalog_group,
|
||||
config_application_catalog.ApplicationCatalogGroup)
|
||||
|
@ -48,7 +48,7 @@ class MuranoTempestPlugin(plugins.TempestPlugin):
|
|||
config_application_catalog.ApplicationCatalogGroup),
|
||||
(config_application_catalog.service_broker_group.name,
|
||||
config_application_catalog.ServiceBrokerGroup),
|
||||
('service_available',
|
||||
config_application_catalog.ServiceAvailableGroup),
|
||||
(config.service_available_group.name,
|
||||
config_application_catalog.service_option),
|
||||
(config_application_catalog.artifacts_group.name,
|
||||
config_application_catalog.ArtifactsGroup)]
|
||||
|
|
Loading…
Reference in New Issue