Skip to content

Commit

Permalink
fixes an issue with the termination log redirect
Browse files Browse the repository at this point in the history
The problem only affected linux systems and therefore
docker compose tests and other linux execs. On
kubernetes the `/dev/terminination-log` already exists
and should not be created.
  • Loading branch information
Vincent Landgraf committed Jun 8, 2020
1 parent 826135b commit 389430c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion maintenance/terminationlog/termlog_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
const termLog = "/dev/termination-log"

func init() {
file, err := os.Create(termLog)
file, err := os.Open(termLog)

if err == nil {
logFile = file
Expand Down

0 comments on commit 389430c

Please sign in to comment.