RH: Add revision (if it exists)

This commit is contained in:
richard.hulm 2016-07-19 10:04:56 +01:00
parent 25eeab5e49
commit e2f7e825a1

View File

@ -412,6 +412,10 @@ func (c *Command) setupAgent(config *Config, logOutput io.Writer, logWriter *log
if len(config.VersionPrerelease) != 0 {
version += " " + config.VersionPrerelease
if len(config.Revision) != 0 {
version += " " + config.Revision
}
}
c.Ui.Output("Starting Consul agent (" + version + ")...")