mirror of https://github.com/portainer/portainer
fix(edge-stack): detaching swarm stack from git repository EE-5812 (#9997)
parent
d3420f39c1
commit
59be96e9e8
|
@ -268,6 +268,11 @@ func (handler *Handler) updateSwarmStack(r *http.Request, stack *portainer.Stack
|
||||||
|
|
||||||
stack.Env = payload.Env
|
stack.Env = payload.Env
|
||||||
|
|
||||||
|
if stack.GitConfig != nil {
|
||||||
|
// detach from git
|
||||||
|
stack.GitConfig = nil
|
||||||
|
}
|
||||||
|
|
||||||
stackFolder := strconv.Itoa(int(stack.ID))
|
stackFolder := strconv.Itoa(int(stack.ID))
|
||||||
_, err = handler.FileService.UpdateStoreStackFileFromBytes(stackFolder, stack.EntryPoint, []byte(payload.StackFileContent))
|
_, err = handler.FileService.UpdateStoreStackFileFromBytes(stackFolder, stack.EntryPoint, []byte(payload.StackFileContent))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue