Skip to content

Commit

Permalink
fix: add nil cccheck
Browse files Browse the repository at this point in the history
  • Loading branch information
vsukhin committed Mar 20, 2024
1 parent d5deb9a commit ec39c97
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/kubectl-testkube/commands/common/render/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ func RenderExecutionResult(client client.Client, execution *testkube.Execution,
}

func PrintLogs(client client.Client, info testkube.ServerInfo, execution testkube.Execution) {
if !info.Features.LogsV2 {
if info.Features == nil || !info.Features.LogsV2 {
// fallback to default logs
ui.Info(execution.ExecutionResult.Output)
return
Expand Down
2 changes: 1 addition & 1 deletion cmd/kubectl-testkube/commands/tests/watch.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func NewWatchExecutionCmd() *cobra.Command {
info, err := client.GetServerInfo()
ui.ExitOnError("getting server info", err)

if info.Features.LogsV2 {
if info.Features != nil && info.Features.LogsV2 {
err = watchLogsV2(execution.Id, false, client)
} else {
err = watchLogs(execution.Id, false, client)
Expand Down

0 comments on commit ec39c97

Please sign in to comment.