Display exceptions when calling AWS

This commit is contained in:
Stefan Reimer 2018-12-10 17:58:54 +00:00
parent ea58e60aa9
commit 67c874a373

View File

@ -2,7 +2,7 @@ import os
import click import click
import functools import functools
from concurrent.futures import ThreadPoolExecutor, wait from concurrent.futures import ThreadPoolExecutor, as_completed
from . import __version__ from . import __version__
from .core import CloudBender from .core import CloudBender
@ -70,7 +70,9 @@ def provision(ctx, stack_name, multi):
futures.append(group.submit(stack.create)) futures.append(group.submit(stack.create))
else: else:
futures.append(group.submit(stack.update)) futures.append(group.submit(stack.update))
wait(futures)
for future in as_completed(futures):
stack, status = future.result()
@click.command() @click.command()
@ -92,7 +94,8 @@ def delete(ctx, stack_name, multi):
if stack.multi_delete: if stack.multi_delete:
futures.append(group.submit(stack.delete)) futures.append(group.submit(stack.delete))
wait(futures) for future in as_completed(futures):
stack, status = future.result()
@click.command() @click.command()