Display exceptions when calling AWS
This commit is contained in:
parent
ea58e60aa9
commit
67c874a373
@ -2,7 +2,7 @@ import os
|
||||
import click
|
||||
import functools
|
||||
|
||||
from concurrent.futures import ThreadPoolExecutor, wait
|
||||
from concurrent.futures import ThreadPoolExecutor, as_completed
|
||||
|
||||
from . import __version__
|
||||
from .core import CloudBender
|
||||
@ -70,7 +70,9 @@ def provision(ctx, stack_name, multi):
|
||||
futures.append(group.submit(stack.create))
|
||||
else:
|
||||
futures.append(group.submit(stack.update))
|
||||
wait(futures)
|
||||
|
||||
for future in as_completed(futures):
|
||||
stack, status = future.result()
|
||||
|
||||
|
||||
@click.command()
|
||||
@ -92,7 +94,8 @@ def delete(ctx, stack_name, multi):
|
||||
if stack.multi_delete:
|
||||
futures.append(group.submit(stack.delete))
|
||||
|
||||
wait(futures)
|
||||
for future in as_completed(futures):
|
||||
stack, status = future.result()
|
||||
|
||||
|
||||
@click.command()
|
||||
|
Loading…
Reference in New Issue
Block a user