From: Angus Salkeld Date: Mon, 2 Apr 2012 05:15:10 +0000 (+1000) Subject: Fix a crash in "heat show/list" X-Git-Tag: 2014.1~2106 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=986e39c3b6e600f449412e6c8f2dce0ea92f75bc;p=openstack-build%2Fheat-build.git Fix a crash in "heat show/list" Signed-off-by: Angus Salkeld --- diff --git a/heat/engine/api/v1/stacks.py b/heat/engine/api/v1/stacks.py index 684baefa..e8ae6ddb 100644 --- a/heat/engine/api/v1/stacks.py +++ b/heat/engine/api/v1/stacks.py @@ -49,7 +49,7 @@ class StacksController(object): res = {'stacks': [] } for s in stack_db: mem = {} - mem['StackId'] = stack_db[s]['StackId'] + mem['StackId'] = s mem['StackName'] = s mem['CreationTime'] = 'now' try: @@ -66,7 +66,7 @@ class StacksController(object): res = {'stacks': [] } if stack_db.has_key(id): mem = {} - mem['StackId'] = stack_db[id]['StackId'] + mem['StackId'] = id mem['StackName'] = id mem['CreationTime'] = 'TODO' mem['LastUpdatedTime'] = 'TODO'