heat engine : register options before using them

Fix regression caused by the __init__.py refactoring, which means
we try to use cfg.CONF.host before registering it.

fixes bug #1174302

Change-Id: Iff4d75f53e242d7df8c7071cbeeead034a7ad9b0
This commit is contained in:
Steven Hardy 2013-04-29 13:46:57 +01:00
parent 746877fe2e
commit 2db9b282a0
2 changed files with 1 additions and 2 deletions

View File

@ -63,6 +63,7 @@ if __name__ == '__main__':
from heat.engine import service as engine
db_api.configure()
config.register_engine_opts()
srv = engine.EngineService(cfg.CONF.host, rpc_api.ENGINE_TOPIC)
launcher = service.launch(srv)
launcher.wait()

View File

@ -19,7 +19,6 @@ import json
from oslo.config import cfg
import webob
from heat.common import config
from heat.common import context
from heat.db import api as db_api
from heat.engine import api
@ -66,7 +65,6 @@ class EngineService(service.Service):
super(EngineService, self).__init__(host, topic)
# stg == "Stack Thread Groups"
self.stg = {}
config.register_engine_opts()
def _start_in_thread(self, stack_id, func, *args, **kwargs):
if stack_id not in self.stg: