Skip to content

Commit

Permalink
don't use baseCmdName when printing client version
Browse files Browse the repository at this point in the history
This patch addresses an issue where the client name will be printed as
what the "base / root" command was when invoking the "version" cmd.
  • Loading branch information
juanvallejo committed Feb 2, 2017
1 parent f3cb48a commit cdf475c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cmd/cli/cmd/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func (o *VersionOptions) Complete(cmd *cobra.Command, f *clientcmd.Factory, out

// RunVersion attempts to display client and server versions for Kubernetes and OpenShift
func (o VersionOptions) RunVersion() error {
fmt.Fprintf(o.Out, "%s %v\n", o.BaseName, version.Get())
fmt.Fprintf(o.Out, "oc %v\n", version.Get())
fmt.Fprintf(o.Out, "kubernetes %v\n", kubeversion.Get())
if o.PrintEtcdVersion {
fmt.Fprintf(o.Out, "etcd %v\n", etcdversion.Version)
Expand Down

0 comments on commit cdf475c

Please sign in to comment.