Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def find_stack(environment_id, **kwargs):
- stacks, has_more, has_prev = heat_api.stacks_list(
- request, sort_dir='asc', **kwargs)
- for stack in stacks:
- current_stack = heat_api.stack_get(request, stack.id)
- import pdb; pdb.set_trace()
- if environment_id in current_stack.description:
- stack_data = {'id': stack.id,
- 'name': stack.stack_name}
- return stack_data
- if has_more:
- return find_stack(environment_id, marker=stacks[-1].id)
- return {}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement