]> review.fuel-infra Code Review - openstack-build/heat-build.git/commitdiff
Fix a crash in "heat show/list"
authorAngus Salkeld <asalkeld@redhat.com>
Mon, 2 Apr 2012 05:15:10 +0000 (15:15 +1000)
committerAngus Salkeld <asalkeld@redhat.com>
Mon, 2 Apr 2012 05:15:10 +0000 (15:15 +1000)
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
heat/engine/api/v1/stacks.py

index 684baefa25b639da834d759fb80f5e76eec459a9..e8ae6ddb6e019ec6bf27fc969bc333473d12f2b1 100644 (file)
@@ -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'