Skip to content

Commit

Permalink
Matching kubelet's containerLogManager.rotateLog() glob pattern
Browse files Browse the repository at this point in the history
Signed-off-by: Ferdinando Formica <ferdinando.formica@ie.ibm.com>
  • Loading branch information
fformica committed Feb 27, 2024
1 parent 09b9303 commit 5afb4c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/crictl/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ var removeContainerCommand = &cli.Command{
} else if !ctx.Bool("keep-logs") {
logPath := resp.GetStatus().GetLogPath()
if logPath != "" {
logRotations, err := filepath.Glob(logPath + "*")
logRotations, err := filepath.Glob(logPath + ".*")
if err != nil {
logRotations = []string{logPath}
}
Expand Down

0 comments on commit 5afb4c7

Please sign in to comment.