Rename params to consts

Cause name 'params' may bring some troubles, rename it to 'consts'.

Change-Id: I882d6cba290c0936442e0e3a4f5872158e38de33
This commit is contained in:
lvdongbing
2015-12-30 03:51:48 -05:00
parent 1ad368ac31
commit 1d15ffbfa0
8 changed files with 34 additions and 34 deletions

View File

@@ -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()