mirror of https://github.com/status-im/consul.git
Add Datacenter to output
This commit is contained in:
parent
37aa0ae7a5
commit
3c7a06bb80
|
@ -166,6 +166,7 @@ func (c *Command) Run(args []string) int {
|
||||||
|
|
||||||
c.Ui.Output("Consul agent running!")
|
c.Ui.Output("Consul agent running!")
|
||||||
c.Ui.Info(fmt.Sprintf(" Node name: '%s'", config.NodeName))
|
c.Ui.Info(fmt.Sprintf(" Node name: '%s'", config.NodeName))
|
||||||
|
c.Ui.Info(fmt.Sprintf("Datacenter: '%s'", config.Datacenter))
|
||||||
c.Ui.Info(fmt.Sprintf(" RPC addr: '%s'", config.RPCAddr))
|
c.Ui.Info(fmt.Sprintf(" RPC addr: '%s'", config.RPCAddr))
|
||||||
c.Ui.Info(fmt.Sprintf(" HTTP addr: '%s'", config.HTTPAddr))
|
c.Ui.Info(fmt.Sprintf(" HTTP addr: '%s'", config.HTTPAddr))
|
||||||
c.Ui.Info(fmt.Sprintf(" Encrypted: %#v", config.EncryptKey != ""))
|
c.Ui.Info(fmt.Sprintf(" Encrypted: %#v", config.EncryptKey != ""))
|
||||||
|
|
|
@ -74,6 +74,7 @@ type Config struct {
|
||||||
// DefaultConfig is used to return a sane default configuration
|
// DefaultConfig is used to return a sane default configuration
|
||||||
func DefaultConfig() *Config {
|
func DefaultConfig() *Config {
|
||||||
return &Config{
|
return &Config{
|
||||||
|
Datacenter: consul.DefaultDC,
|
||||||
HTTPAddr: "127.0.0.1:8500",
|
HTTPAddr: "127.0.0.1:8500",
|
||||||
LogLevel: "INFO",
|
LogLevel: "INFO",
|
||||||
RPCAddr: "127.0.0.1:8400",
|
RPCAddr: "127.0.0.1:8400",
|
||||||
|
|
Loading…
Reference in New Issue