From 4246ab1220f198486f4fc832a9d06411e05e3798 Mon Sep 17 00:00:00 2001 From: Jeff Mitchell Date: Tue, 9 Aug 2016 11:28:42 -0400 Subject: [PATCH] Change local cluster info path --- vault/cluster.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vault/cluster.go b/vault/cluster.go index 0269f6b78..ffdbb01b6 100644 --- a/vault/cluster.go +++ b/vault/cluster.go @@ -10,7 +10,7 @@ import ( const ( // Storage path where the local cluster name and identifier are stored - coreLocalClusterPath = "core/cluster/local" + coreLocalClusterInfoPath = "core/cluster/local/info" ) // Structure representing the storage entry that holds cluster information @@ -26,7 +26,7 @@ type Cluster struct { // input. This method errors out when Vault is sealed. func (c *Core) Cluster() (*Cluster, error) { // Fetch the storage entry. This call fails when Vault is sealed. - entry, err := c.barrier.Get(coreLocalClusterPath) + entry, err := c.barrier.Get(coreLocalClusterInfoPath) if err != nil { return nil, err } @@ -92,7 +92,7 @@ func (c *Core) setupCluster() error { // Store it return c.barrier.Put(&Entry{ - Key: coreLocalClusterPath, + Key: coreLocalClusterInfoPath, Value: rawCluster, })