From: Ian Main Date: Tue, 3 Apr 2012 23:55:20 +0000 (-0700) Subject: stack_db attributes seem broken. Comment these out for now and the API X-Git-Tag: 2014.1~2088^2~3 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=c94960563adae02138238db94ef8ee53a53cbb90;p=openstack-build%2Fheat-build.git stack_db attributes seem broken. Comment these out for now and the API is generally working. Signed-off-by: Ian Main --- diff --git a/heat/engine/manager.py b/heat/engine/manager.py index d4daf465..94271525 100644 --- a/heat/engine/manager.py +++ b/heat/engine/manager.py @@ -68,7 +68,7 @@ class EngineManager(manager.Manager): res = {'stacks': [] } for s in stack_db: mem = {} - mem['StackId'] = stack_db[s]['StackId'] + #mem['StackId'] = stack_db[s]['StackId'] mem['StackName'] = s mem['CreationTime'] = 'now' try: @@ -86,13 +86,15 @@ class EngineManager(manager.Manager): res = {'stacks': [] } if stack_db.has_key(stack_name): mem = {} - mem['StackId'] = stack_db[stack_name]['StackId'] + # XXX Broken.. need to figure out the ID stuff. + # Actually all attributes about stack_db are broken.. + # mem['StackId'] = stack_db[stack_name]['StackId'] mem['StackName'] = stack_name mem['CreationTime'] = 'TODO' mem['LastUpdatedTime'] = 'TODO' mem['NotificationARNs'] = 'TODO' mem['Outputs'] = [{'Description': 'TODO', 'OutputKey': 'TODO', 'OutputValue': 'TODO' }] - mem['Parameters'] = stack_db[stack_name]['Parameters'] + #mem['Parameters'] = stack_db[stack_name]['Parameters'] mem['StackStatusReason'] = 'TODO' mem['TimeoutInMinutes'] = 'TODO' try: @@ -112,6 +114,7 @@ class EngineManager(manager.Manager): if stack_db.has_key(stack_name): return {'Error': 'Stack already exists with that name.'} + logger.info('template is %s' % template) stack_db[stack_name] = parser.Stack(stack_name, template) stack_db[stack_name].start()