mirror of
https://github.com/portainer/portainer.git
synced 2025-07-22 06:49:40 +02:00
This reverts commit bd98b8956a
.
This commit is contained in:
parent
f8b226a1ef
commit
7975ef796d
8 changed files with 61 additions and 99 deletions
|
@ -4,7 +4,6 @@ import (
|
|||
"errors"
|
||||
"net/http"
|
||||
"strconv"
|
||||
"time"
|
||||
|
||||
"github.com/asaskevich/govalidator"
|
||||
httperror "github.com/portainer/libhttp/error"
|
||||
|
@ -124,7 +123,6 @@ func (handler *Handler) updateComposeStack(r *http.Request, stack *portainer.Sta
|
|||
}
|
||||
|
||||
stack.Env = payload.Env
|
||||
stack.UpdateDate = time.Now().Unix()
|
||||
|
||||
stackFolder := strconv.Itoa(int(stack.ID))
|
||||
_, err = handler.FileService.StoreStackFileFromBytes(stackFolder, stack.EntryPoint, []byte(payload.StackFileContent))
|
||||
|
@ -153,7 +151,6 @@ func (handler *Handler) updateSwarmStack(r *http.Request, stack *portainer.Stack
|
|||
}
|
||||
|
||||
stack.Env = payload.Env
|
||||
stack.UpdateDate = time.Now().Unix()
|
||||
|
||||
stackFolder := strconv.Itoa(int(stack.ID))
|
||||
_, err = handler.FileService.StoreStackFileFromBytes(stackFolder, stack.EntryPoint, []byte(payload.StackFileContent))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue