fix(stacks): mark stack as start after autoupdate [EE-6165] (#10376)

pull/10388/head
Chaim Lev-Ari 2023-09-27 07:53:33 +03:00 committed by GitHub
parent 3ff2f64930
commit e28322459a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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)
}