Skip to content

Commit

Permalink
fix(status): log more appropriate status on completion. SPLAT-630
Browse files Browse the repository at this point in the history
  • Loading branch information
bostrt committed Jun 30, 2022
1 parent 25bd131 commit 4494400
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/run/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,9 @@ func NewCmdRun() *cobra.Command {
log.Fatal(err)
}

log.Info("Sonobuoy pods are ready!")
if !o.watch {
log.Info("Sonobuoy pods are ready!")
}
},
}

Expand Down
4 changes: 4 additions & 0 deletions pkg/status/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,10 @@ func (s *StatusOptions) doPrint() (complete bool, err error) {
return false, err
}
} else if !s.shownPostProcessMsg {
err := PrintRunningStatus(s.Latest)
if err != nil {
return false, err
}
log.Info("Waiting for post-processor...")
s.shownPostProcessMsg = true
}
Expand Down

0 comments on commit 4494400

Please sign in to comment.