Display exceptions when calling AWS
This commit is contained in:
parent
ea58e60aa9
commit
67c874a373
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user