Add a plugin directory for Resources
bug 1072903 Change-Id: I0f218c47620d50dc52bd931ee266f4dc19d701ed Signed-off-by: Zane Bitter <zbitter@redhat.com>
This commit is contained in:
@@ -100,7 +100,10 @@ cfg.IntOpt('sql_idle_timeout',
|
||||
engine_opts = [
|
||||
cfg.StrOpt('instance_driver',
|
||||
default='heat.engine.nova',
|
||||
help='Driver to use for controlling instances')
|
||||
help='Driver to use for controlling instances'),
|
||||
cfg.ListOpt('plugin_dirs',
|
||||
default=['/usr/lib64/heat', '/usr/lib/heat'],
|
||||
help='List of directories to search for Plugins'),
|
||||
]
|
||||
rpc_opts = [
|
||||
cfg.StrOpt('host',
|
||||
|
||||
@@ -44,5 +44,11 @@ def _initialise():
|
||||
|
||||
_register_modules(plugin_loader.load_modules(sys.modules[__name__]))
|
||||
|
||||
from heat.openstack.common import cfg
|
||||
|
||||
plugin_pkg = plugin_loader.create_subpackage(cfg.CONF.plugin_dirs,
|
||||
'heat.engine')
|
||||
_register_modules(plugin_loader.load_modules(plugin_pkg, True))
|
||||
|
||||
|
||||
_initialise()
|
||||
|
||||
Reference in New Issue
Block a user