Stack list now communicating end to end. Time to hook some stuff up.

This commit is contained in:
Ian Main 2012-03-30 14:05:36 -07:00
parent cfdd2e4545
commit 75f8085171
2 changed files with 4 additions and 1 deletions

View File

@ -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):
"""

View File

@ -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}