diff --git a/vmware_nsx_tempest/config.py b/vmware_nsx_tempest/config.py index b579072539..ee290d72b1 100644 --- a/vmware_nsx_tempest/config.py +++ b/vmware_nsx_tempest/config.py @@ -13,14 +13,10 @@ from oslo_config import cfg from tempest import config -service_available_group = cfg.OptGroup(name="service_available", - title="Available OpenStack Services") - -ServiceAvailableGroup = [ - cfg.BoolOpt("vmware_nsx", - default=True, - help="Whether or not vmware_nsx is expected to be available"), -] +service_option = cfg.BoolOpt("vmware_nsx", + default=True, + help="Whether or not vmware_nsx is expected to be" + " available") scenario_group = config.scenario_group ScenarioGroup = [ diff --git a/vmware_nsx_tempest/plugin.py b/vmware_nsx_tempest/plugin.py index 6ad768e4d4..3d5a5bfdd6 100644 --- a/vmware_nsx_tempest/plugin.py +++ b/vmware_nsx_tempest/plugin.py @@ -41,10 +41,8 @@ class VMwareNsxTempestPlugin(plugins.TempestPlugin): return (test_fullpath, base_path) def register_opts(self, conf): - config.register_opt_group( - conf, - config_nsx.service_available_group, - config_nsx.ServiceAvailableGroup) + conf.register_opt(config_nsx.service_option, + group='service_available') config.register_opt_group( conf, config_nsx.scenario_group, config_nsx.ScenarioGroup) @@ -64,5 +62,5 @@ class VMwareNsxTempestPlugin(plugins.TempestPlugin): def get_opt_lists(self): return [ (config_nsx.scenario_group.name, config_nsx.scenario_group), - ('service_available', config_nsx.ServiceAvailableGroup) + ('service_available', [config_nsx.service_option]) ]