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
"""
Returns the following information for all stacks:
"""
- c = engine.get_engine_client(req.context)
- stack_list = c.get_stacks(**req.params)
-
- res = {'ListStacksResponse': {'ListStacksResult': {'StackSummaries': [] } } }
- summaries = res['ListStacksResponse']['ListStacksResult']['StackSummaries']
- for s in stack_list:
- summaries.append(s)
+ con = context.get_admin_context()
- return res
+ return rpc.call(con, 'engine', {'method': 'list'})
def describe(self, req):
"""
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'),
]