Ensures common services plugin is always loaded
This commit adds code to ensure that the common services plugin is always loaded as part of other service plugins load. Change-Id: I82bab93563befa7ee2cf15a6825fa945cd79dc5f Implements: blueprint: audit-support
This commit is contained in:
parent
2390b13735
commit
2c0064722f
|
@ -40,7 +40,7 @@ core_opts = [
|
|||
help=_("The API paste config file to use")),
|
||||
cfg.StrOpt('api_extensions_path', default="",
|
||||
help=_("The path for API extensions")),
|
||||
cfg.ListOpt('service_plugins', default=['nfvo', 'vnfm', 'commonservices'],
|
||||
cfg.ListOpt('service_plugins', default=['nfvo', 'vnfm'],
|
||||
help=_("The service plugins Tacker will use")),
|
||||
cfg.StrOpt('policy_file', default="policy.json",
|
||||
help=_("The policy file to use")),
|
||||
|
|
|
@ -129,6 +129,8 @@ class TackerManager(object):
|
|||
advanced services then loads classes provided in configuration.
|
||||
"""
|
||||
plugin_providers = cfg.CONF.service_plugins
|
||||
if 'commonservices' not in plugin_providers:
|
||||
plugin_providers.append('commonservices')
|
||||
LOG.debug(_("Loading service plugins: %s"), plugin_providers)
|
||||
for provider in plugin_providers:
|
||||
if provider == '':
|
||||
|
|
Loading…
Reference in New Issue