Fixes startup version print to show the human version.

This commit is contained in:
James Phillips 2016-07-20 08:09:05 -07:00
parent 0c65b1e813
commit 4a7b55c8cb
1 changed files with 1 additions and 1 deletions

View File

@ -856,7 +856,7 @@ func (c *Command) Run(args []string) int {
c.agent.StartSync()
c.Ui.Output("Consul agent running!")
c.Ui.Info(fmt.Sprintf(" Version: '%s'", c.Version))
c.Ui.Info(fmt.Sprintf(" Version: '%s'", c.HumanVersion))
c.Ui.Info(fmt.Sprintf(" Node name: '%s'", config.NodeName))
c.Ui.Info(fmt.Sprintf(" Datacenter: '%s'", config.Datacenter))
c.Ui.Info(fmt.Sprintf(" Server: %v (bootstrap: %v)", config.Server, config.Bootstrap))