|
@@ -112,10 +112,11 @@ func (b *ecsAPIService) WaitStackCompletion(ctx context.Context, name string, op
|
|
|
continue
|
|
continue
|
|
|
}
|
|
}
|
|
|
if err := b.SDK.CheckStackState(ctx, name); err != nil {
|
|
if err := b.SDK.CheckStackState(ctx, name); err != nil {
|
|
|
|
|
+ if e := b.SDK.DeleteStack(ctx, name); e != nil {
|
|
|
|
|
+ return e
|
|
|
|
|
+ }
|
|
|
stackErr = err
|
|
stackErr = err
|
|
|
- b.SDK.DeleteStack(ctx, name)
|
|
|
|
|
operation = stackDelete
|
|
operation = stackDelete
|
|
|
-
|
|
|
|
|
reason := err.Error()
|
|
reason := err.Error()
|
|
|
if len(reason) > 30 {
|
|
if len(reason) > 30 {
|
|
|
reason = reason[:30] + "..."
|
|
reason = reason[:30] + "..."
|