From 0c23acb818e4f52e1312c0355a0aff5822280503 Mon Sep 17 00:00:00 2001 From: Sean Chittenden Date: Fri, 8 Apr 2016 11:55:20 -0700 Subject: [PATCH] Comment nits --- command/server.go | 2 +- command/server/config.go | 4 ++-- website/source/docs/config/index.html.md | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/command/server.go b/command/server.go index 602981a7f..b13f8d710 100644 --- a/command/server.go +++ b/command/server.go @@ -205,7 +205,7 @@ func (c *ServerCommand) Run(args []string) int { coreConfig.AdvertiseAddr = envAA } - // Attempt to detect the advertise address possible + // Attempt to detect the advertise address, if possible var detect physical.AdvertiseDetect if coreConfig.HAPhysical != nil { detect, ok = coreConfig.HAPhysical.(physical.AdvertiseDetect) diff --git a/command/server/config.go b/command/server/config.go index 450f640f8..1945040f4 100644 --- a/command/server/config.go +++ b/command/server/config.go @@ -365,7 +365,7 @@ func parseBackends(result *Config, list *ast.ObjectList) error { return multierror.Prefix(err, fmt.Sprintf("backend.%s:", key)) } - // Pull out the advertise address since it's commong to all backends + // Pull out the advertise address since it's common to all backends var advertiseAddr string if v, ok := m["advertise_addr"]; ok { advertiseAddr = v @@ -398,7 +398,7 @@ func parseHABackends(result *Config, list *ast.ObjectList) error { return multierror.Prefix(err, fmt.Sprintf("ha_backend.%s:", key)) } - // Pull out the advertise address since it's commong to all backends + // Pull out the advertise address since it's common to all backends var advertiseAddr string if v, ok := m["advertise_addr"]; ok { advertiseAddr = v diff --git a/website/source/docs/config/index.html.md b/website/source/docs/config/index.html.md index 52226a9f2..237efd1db 100644 --- a/website/source/docs/config/index.html.md +++ b/website/source/docs/config/index.html.md @@ -185,7 +185,7 @@ All backends support the following options: nodes to when A is the active node and B and C are standby nodes. This may be the same address across nodes if using a load balancer or service discovery. Most HA backends will attempt to determine the advertise address - if not provided. This can also be set via the `VAULT_ADVERTISE_ADDR` + if not provided. This can also be overridden via the `VAULT_ADVERTISE_ADDR` environment variable. #### Backend Reference: Consul