mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 19:47:54 +00:00
Do not fail if api_addr and cluster_addr are empty (#4286)
This commit is contained in:
committed by
Jeff Mitchell
parent
e2bb2ec3b9
commit
059493b587
@@ -597,7 +597,7 @@ func (c *ServerCommand) Run(args []string) int {
|
|||||||
|
|
||||||
CLUSTER_SYNTHESIS_COMPLETE:
|
CLUSTER_SYNTHESIS_COMPLETE:
|
||||||
|
|
||||||
if coreConfig.RedirectAddr == coreConfig.ClusterAddr {
|
if coreConfig.RedirectAddr == coreConfig.ClusterAddr && len(coreConfig.RedirectAddr) != 0 {
|
||||||
c.UI.Error(fmt.Sprintf(
|
c.UI.Error(fmt.Sprintf(
|
||||||
"Address %q used for both API and cluster addresses", coreConfig.RedirectAddr))
|
"Address %q used for both API and cluster addresses", coreConfig.RedirectAddr))
|
||||||
return 1
|
return 1
|
||||||
|
|||||||
@@ -147,7 +147,8 @@ func TestServer_ReloadListener(t *testing.T) {
|
|||||||
args := []string{"-config", td + "/reload.hcl"}
|
args := []string{"-config", td + "/reload.hcl"}
|
||||||
go func() {
|
go func() {
|
||||||
if code := cmd.Run(args); code != 0 {
|
if code := cmd.Run(args); code != 0 {
|
||||||
t.Error("got a non-zero exit status")
|
output := ui.ErrorWriter.String() + ui.OutputWriter.String()
|
||||||
|
t.Errorf("got a non-zero exit status: %s", output)
|
||||||
}
|
}
|
||||||
finishedMutex.Lock()
|
finishedMutex.Lock()
|
||||||
finished = true
|
finished = true
|
||||||
|
|||||||
Reference in New Issue
Block a user