From 4a4d62e75f37d05bfee71e35c7443fc320e344b0 Mon Sep 17 00:00:00 2001 From: George Adams Date: Fri, 27 Jan 2023 13:37:55 -0500 Subject: [PATCH] Version check enhancements Add the version osdctl thinks it is running and the latest version available to the version check output. --- cmd/cmd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/cmd.go b/cmd/cmd.go index 7a67721eb..2b721a232 100644 --- a/cmd/cmd.go +++ b/cmd/cmd.go @@ -62,7 +62,7 @@ func NewCmdRoot(streams genericclioptions.IOStreams) *cobra.Command { } if utils.Version != latestVersion { - fmt.Println("The current version is different than the latest released version.") + fmt.Println(fmt.Sprintf("The current version (%s) is different than the latest released version (%s).", utils.Version, latestVersion)) fmt.Println("It is recommended that you update to the latest released version to ensure that no known bugs or issues are hit.") fmt.Println("Please confirm that you would like to continue with [y|n]")