mirror of https://github.com/portainer/portainer
fix(stacks): mark stack as start after autoupdate [EE-6165] (#10376)
parent
3ff2f64930
commit
e28322459a
|
@ -129,6 +129,8 @@ func RedeployWhenChanged(stackID portainer.StackID, deployer StackDeployer, data
|
|||
return errors.Errorf("cannot update stack, type %v is unsupported", stack.Type)
|
||||
}
|
||||
|
||||
stack.Status = portainer.StackStatusActive
|
||||
|
||||
if err := datastore.Stack().Update(stack.ID, stack); err != nil {
|
||||
return errors.WithMessagef(err, "failed to update the stack %v", stack.ID)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue