Skip to content

Commit

Permalink
fix: Panic on CLI Watch command (#3532)
Browse files Browse the repository at this point in the history
  • Loading branch information
sarabala1979 authored and alexec committed Jul 23, 2020
1 parent a366648 commit cbf27ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/argo/commands/watch.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func watchWorkflow(ctx context.Context, serviceClient workflowpkg.WorkflowServic
}

printWorkflowStatus(wf, getArgs)
if !wf.Status.FinishedAt.IsZero() {
if wf != nil && !wf.Status.FinishedAt.IsZero() {
return
}
}
Expand Down

0 comments on commit cbf27ed

Please sign in to comment.