Change local cluster info path
This commit is contained in:
parent
c27a52069c
commit
4246ab1220
|
@ -10,7 +10,7 @@ import (
|
||||||
|
|
||||||
const (
|
const (
|
||||||
// Storage path where the local cluster name and identifier are stored
|
// 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
|
// 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.
|
// input. This method errors out when Vault is sealed.
|
||||||
func (c *Core) Cluster() (*Cluster, error) {
|
func (c *Core) Cluster() (*Cluster, error) {
|
||||||
// Fetch the storage entry. This call fails when Vault is sealed.
|
// 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 {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
@ -92,7 +92,7 @@ func (c *Core) setupCluster() error {
|
||||||
|
|
||||||
// Store it
|
// Store it
|
||||||
return c.barrier.Put(&Entry{
|
return c.barrier.Put(&Entry{
|
||||||
Key: coreLocalClusterPath,
|
Key: coreLocalClusterInfoPath,
|
||||||
Value: rawCluster,
|
Value: rawCluster,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue