Skip to content

Commit

Permalink
chore(log): log next steps upon successful status and retrieval. SPLA…
Browse files Browse the repository at this point in the history
…T-638
  • Loading branch information
bostrt committed Jun 30, 2022
1 parent 4494400 commit defe644
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pkg/retrieve/retrieve.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func NewCmdRetrieve() *cobra.Command {
return
}

log.Info("Use the 'results' command to check the certification test summary")
log.Info("Use the results command to check the certification test summary or share the results archive with your Red Hat partner.")
},
}
}
Expand Down
10 changes: 5 additions & 5 deletions pkg/status/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,12 +203,12 @@ func (s *StatusOptions) doPrint() (complete bool, err error) {
s.shownPostProcessMsg = true
}
case aggregation.CompleteStatus:
if !s.watch || !s.shownPostProcessMsg {
log.Infof("The execution has completed! Use retrieve command to collect the results.")
return true, nil
}
err := PrintRunningStatus(s.Latest)
return true, err
if err != nil {
return true, err
}
log.Infof("The execution has completed! Use retrieve command to collect the results and share the archive with your Red Hat partner.")
return true, nil
default:
log.Infof("Unknown state %s", s.GetStatus())
}
Expand Down

0 comments on commit defe644

Please sign in to comment.