Skip to content

Commit

Permalink
Convert generator to list in Heat list API call
Browse files Browse the repository at this point in the history
The generator being returned by heatclient didn't like
being iterated multiple times (as when doing a multiple
delete through the stacks table).

Fixes bug #1224393

Change-Id: I01482c0fadcf145fe99806983d9a1dc6f50ac56a
  • Loading branch information
gabrielhurley committed Sep 28, 2013
1 parent 912425a commit f109591
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openstack_dashboard/api/heat.py
Expand Up @@ -53,7 +53,7 @@ def heatclient(request, password=None):


def stacks_list(request):
return heatclient(request).stacks.list()
return [stack for stack in heatclient(request).stacks.list()]


def stack_delete(request, stack_id):
Expand Down

0 comments on commit f109591

Please sign in to comment.