Rename params to consts
Cause name 'params' may bring some troubles, rename it to 'consts'. Change-Id: I882d6cba290c0936442e0e3a4f5872158e38de33
This commit is contained in:
@@ -32,8 +32,8 @@ POSSIBLE_TOPDIR = os.path.normpath(os.path.join(os.path.abspath(sys.argv[0]),
|
||||
if os.path.exists(os.path.join(POSSIBLE_TOPDIR, 'bilean', '__init__.py')):
|
||||
sys.path.insert(0, POSSIBLE_TOPDIR)
|
||||
|
||||
from bilean.common import consts
|
||||
from bilean.common import messaging
|
||||
from bilean.common import params
|
||||
|
||||
from oslo_config import cfg
|
||||
from oslo_i18n import _lazy
|
||||
@@ -54,7 +54,7 @@ if __name__ == '__main__':
|
||||
|
||||
from bilean.engine import service as engine
|
||||
|
||||
srv = engine.EngineService(cfg.CONF.host, params.ENGINE_TOPIC)
|
||||
srv = engine.EngineService(cfg.CONF.host, consts.ENGINE_TOPIC)
|
||||
launcher = service.launch(cfg.CONF, srv,
|
||||
workers=cfg.CONF.num_engine_workers)
|
||||
launcher.wait()
|
||||
|
||||
Reference in New Issue
Block a user