]> review.fuel-infra Code Review - openstack-build/heat-build.git/commitdiff
Fix "heat list" only showing empty list.
authorAngus Salkeld <asalkeld@redhat.com>
Thu, 5 Apr 2012 06:40:19 +0000 (16:40 +1000)
committerAngus Salkeld <asalkeld@redhat.com>
Thu, 5 Apr 2012 06:43:09 +0000 (16:43 +1000)
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
heat/api/v1/stacks.py

index d096d472ba18d97a9ecfab6e11e6ec2645e60d1c..0b6525d63a93c3fbd62f87ed02727d9c3751b964 100644 (file)
@@ -56,7 +56,7 @@ class StackController(object):
 
         res = {'ListStacksResponse': {'ListStacksResult': {'StackSummaries': [] } } }
         summaries = res['ListStacksResponse']['ListStacksResult']['StackSummaries']
-        for s in stack_list:
+        for s in stack_list['stacks']:
             summaries.append(s)
 
         return res