Process engine config before initialisation

Don't import the heat-engine service module until the configuration options
have been initialised. This will allow us to read the configuration during
initialisation of the engine.

Change-Id: I2bc70d903434eac1fa248640018f038c5ef2bead
Signed-off-by: Zane Bitter <zbitter@redhat.com>
This commit is contained in:
Zane Bitter 2012-11-29 20:51:01 +01:00
parent 89714b36d4
commit 658a839665
1 changed files with 2 additions and 1 deletions

View File

@ -44,7 +44,6 @@ from heat.openstack.common import service
from heat.common import config
from heat.db import api as db_api
from heat.engine import service as engine
logger = logging.getLogger('heat.engine')
@ -57,6 +56,8 @@ if __name__ == '__main__':
config.register_engine_opts()
db_api.configure()
from heat.engine import service as engine
srv = engine.EngineService(cfg.CONF.host,
'engine')
launcher = service.launch(srv)