Skip to content

Commit

Permalink
fix: no such volume error
Browse files Browse the repository at this point in the history
Signed-off-by: Enrique Lacal <[email protected]>
  • Loading branch information
EnriqueL8 committed Jun 17, 2024
1 parent 10122f8 commit 2ceb07f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/stacks/stack_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,7 @@ func (s *StackManager) removeVolumes() error {
}
for _, volumeName := range volumes {
if err := docker.RunDockerCommand(s.ctx, "", "volume", "remove", fmt.Sprintf("%s_%s", s.Stack.Name, volumeName)); err != nil {
if !strings.Contains(err.Error(), "no such volume") {
if !strings.Contains(err.Error(), "No such volume") {
return err
}
}
Expand Down

0 comments on commit 2ceb07f

Please sign in to comment.