mirror of
https://github.com/portainer/portainer.git
synced 2025-07-20 22:09:41 +02:00
fix(edge-stack): add completed status EE-6210 (#11635)
This commit is contained in:
parent
0be1888f11
commit
549579d935
8 changed files with 62 additions and 21 deletions
|
@ -108,9 +108,9 @@ func waitForStatus(deployer libstack.Deployer, ctx context.Context, stackName st
|
|||
|
||||
statusCh := deployer.WaitForStatus(ctx, stackName, requiredStatus)
|
||||
result := <-statusCh
|
||||
if result == "" {
|
||||
return requiredStatus, "", nil
|
||||
if result.ErrorMsg == "" {
|
||||
return result.Status, "", nil
|
||||
}
|
||||
|
||||
return libstack.StatusError, result, nil
|
||||
return libstack.StatusError, result.ErrorMsg, nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue