From 75f80851715e6838888aa5b08a52483cddfe5952 Mon Sep 17 00:00:00 2001 From: Ian Main Date: Fri, 30 Mar 2012 14:05:36 -0700 Subject: [PATCH] Stack list now communicating end to end. Time to hook some stuff up. --- heat/api/v1/stacks.py | 2 +- heat/engine/manager.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/heat/api/v1/stacks.py b/heat/api/v1/stacks.py index fe15c599..6f46bf6a 100644 --- a/heat/api/v1/stacks.py +++ b/heat/api/v1/stacks.py @@ -55,7 +55,7 @@ class StackController(object): """ con = context.get_admin_context() - return rpc.call(con, 'engine', {'method': 'list'}) + return rpc.call(con, 'engine', {'method': 'list_stacks'}) def describe(self, req): """ diff --git a/heat/engine/manager.py b/heat/engine/manager.py index 92fd3224..85e718ea 100644 --- a/heat/engine/manager.py +++ b/heat/engine/manager.py @@ -60,6 +60,9 @@ class EngineManager(manager.Manager): def __init__(self, *args, **kwargs): """Load configuration options and connect to the hypervisor.""" + def list_stacks(self, context): + return {'stack_list': 'yay'} + def create_stack(self, context, stack_name): return {'state': 'woot -> %s' % stack_name} -- 2.45.2