Stop adding ServiceAvailable group option

Service available group already exists.Therefore we don't need to
register this group here again.

Change-Id: I570cb7c1d2e13318a102b9f01a85fd24ffb89f9a
Closes-Bug: #1621036
This commit is contained in:
Nishant Kumar 2016-10-01 12:58:37 +05:30
parent 1b4a1598fd
commit 2fb3a08189
2 changed files with 7 additions and 15 deletions

View File

@ -15,11 +15,7 @@
from oslo_config import cfg
service_available_group = cfg.OptGroup(name="service_available",
title="Available OpenStack Services")
ServiceAvailableGroup = [
cfg.BoolOpt('mistral',
default=True,
help="Whether or not Mistral is expected to be available."),
]
service_option = cfg.BoolOpt('mistral',
default=True,
help="Whether or not Mistral is expected to be"
"available")

View File

@ -16,7 +16,6 @@
import os
from tempest import config
from tempest.test_discover import plugins
from mistral_tempest_tests import config as mistral_config
@ -31,11 +30,8 @@ class MistralTempestPlugin(plugins.TempestPlugin):
return full_test_dir, base_path
def register_opts(self, conf):
config.register_opt_group(
conf,
mistral_config.service_available_group,
mistral_config.ServiceAvailableGroup
)
conf.register_opt(mistral_config.service_option,
group='service_available')
def get_opt_lists(self):
pass
return [('service_available', [mistral_config.service_option])]