Change default exchange to heat-engine from nova. Hook up 'list' though

it doesn't work yet.

Signed-off-by: Ian Main <imain@redhat.com>
This commit is contained in:
Ian Main 2012-03-30 13:38:48 -07:00
parent ac1ab674c8
commit cfdd2e4545
2 changed files with 4 additions and 9 deletions

View File

@ -31,6 +31,7 @@ from webob.exc import (HTTPNotFound,
from heat.common import wsgi
from heat.engine import client as engine
from heat.common import config
from heat import rpc
from heat import context
@ -52,15 +53,9 @@ class StackController(object):
"""
Returns the following information for all stacks:
"""
c = engine.get_engine_client(req.context)
stack_list = c.get_stacks(**req.params)
con = context.get_admin_context()
res = {'ListStacksResponse': {'ListStacksResult': {'StackSummaries': [] } } }
summaries = res['ListStacksResponse']['ListStacksResult']['StackSummaries']
for s in stack_list:
summaries.append(s)
return res
return rpc.call(con, 'engine', {'method': 'list'})
def describe(self, req):
"""

View File

@ -88,7 +88,7 @@ class HeatEngineConfigOpts(cfg.CommonConfigOpts):
help='maximum retries with trying to connect to RabbitMQ '
'(the default of 0 implies an infinite retry count)'),
cfg.StrOpt('control_exchange',
default='nova',
default='heat-engine',
help='the main RabbitMQ exchange to connect to'),
]