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>
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')
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)