Skip to content

Commit

Permalink
fix(server): write version and buildinfo to stdout (#234)
Browse files Browse the repository at this point in the history
  • Loading branch information
neersighted authored Sep 11, 2023
2 parents d9273a8 + 597d406 commit 5085bf4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func NewDockerCRICommand(stopCh <-chan struct{}) *cobra.Command {
verflag, _ := cleanFlagSet.GetBool("version")
if verflag {
fmt.Fprintf(
cmd.OutOrStderr(),
cmd.OutOrStdout(),
"%s %s\n",
version.PlatformName,
version.FullVersion(),
Expand All @@ -92,7 +92,7 @@ func NewDockerCRICommand(stopCh <-chan struct{}) *cobra.Command {
infoflag, _ := cleanFlagSet.GetBool("buildinfo")
if infoflag {
fmt.Fprintf(
cmd.OutOrStderr(),
cmd.OutOrStdout(),
"Program: %s\nVersion: %s\nGitCommit: %s\nGo version: %s\n",
version.PlatformName,
version.FullVersion(),
Expand Down

0 comments on commit 5085bf4

Please sign in to comment.