mirror of https://github.com/docker/compose.git
Error check stack delete
Signed-off-by: aiordache <anca.iordache@docker.com>
This commit is contained in:
parent
d3effd2ead
commit
eadcb3be32
|
@ -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] + "..."
|
||||||
|
|
Loading…
Reference in New Issue