mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 07:49:41 +02:00
fix(server): skip file deletion errors [EE-4916] (#8443)
This commit is contained in:
parent
ab9b0c2147
commit
c8d334e603
7 changed files with 17 additions and 11 deletions
|
@ -10,6 +10,7 @@ import (
|
|||
portainer "github.com/portainer/portainer/api"
|
||||
httperrors "github.com/portainer/portainer/api/http/errors"
|
||||
"github.com/portainer/portainer/api/http/security"
|
||||
"github.com/rs/zerolog/log"
|
||||
)
|
||||
|
||||
// @id CustomTemplateDelete
|
||||
|
@ -61,7 +62,7 @@ func (handler *Handler) customTemplateDelete(w http.ResponseWriter, r *http.Requ
|
|||
|
||||
err = handler.FileService.RemoveDirectory(customTemplate.ProjectPath)
|
||||
if err != nil {
|
||||
return httperror.InternalServerError("Unable to remove custom template files from disk", err)
|
||||
log.Warn().Err(err).Msg("Unable to remove custom template files from disk")
|
||||
}
|
||||
|
||||
if resourceControl != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue