Skip to content

Commit

Permalink
fix(stack/k8s): add log message
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarzhou-portainer committed May 20, 2024
1 parent 0cb4e71 commit ea05e9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/http/handler/stacks/stack_delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ func (handler *Handler) deleteStack(userID portainer.UserID, stack *portainer.St
out, err := handler.KubernetesDeployer.Remove(userID, endpoint, manifestFiles, stack.Namespace)
if err != nil {
for _, manifest := range manifestFiles {
if exists, err := filesystem.FileExists(manifest); err != nil && !exists {
if exists, err := filesystem.FileExists(manifest); err != nil || !exists {
// If removal has failed and one of the manifest files is missing,
// we can consider this stack as removed
return nil
Expand Down

0 comments on commit ea05e9c

Please sign in to comment.