Skip to content
This repository was archived by the owner on Feb 8, 2021. It is now read-only.

Commit 5bad8a3

Browse files
committed
Merge pull request #14 from feiskyer/fix-hyper-logs
Fix hyper logs
2 parents fbcfb99 + 362b5fe commit 5bad8a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/kubelet/hyper/hyper.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -863,10 +863,10 @@ func (r *runtime) GetContainerLogs(pod *api.Pod, containerID kubecontainer.Conta
863863
if logOptions.Follow {
864864
args = append(args, "--follow")
865865
}
866-
if *logOptions.SinceSeconds != 0 {
866+
if logOptions.SinceSeconds != nil && *logOptions.SinceSeconds != 0 {
867867
args = append(args, fmt.Sprintf("--since=%d", *logOptions.SinceSeconds))
868868
}
869-
if *logOptions.TailLines != 0 {
869+
if logOptions.TailLines != nil && *logOptions.TailLines != 0 {
870870
args = append(args, fmt.Sprintf("--tail=%d", *logOptions.TailLines))
871871
}
872872
if logOptions.Timestamps {

0 commit comments

Comments
 (0)