small fixes
This commit is contained in:
parent
a889e0a750
commit
4a8fba5cf7
|
@ -17,7 +17,7 @@ const (
|
|||
consulUnavailable = "unavailable"
|
||||
)
|
||||
|
||||
// ConsulFingerprint is used to fingerprint the architecture
|
||||
// ConsulFingerprint is used to fingerprint for Consul
|
||||
type ConsulFingerprint struct {
|
||||
logger *log.Logger
|
||||
client *consul.Client
|
||||
|
|
|
@ -17,7 +17,7 @@ const (
|
|||
vaultUnavailable = "unavailable"
|
||||
)
|
||||
|
||||
// ConsulFingerprint is used to fingerprint the architecture
|
||||
// VaultFingerprint is used to fingerprint for Vault
|
||||
type VaultFingerprint struct {
|
||||
logger *log.Logger
|
||||
client *vapi.Client
|
||||
|
@ -56,7 +56,7 @@ func (f *VaultFingerprint) Fingerprint(config *client.Config, node *structs.Node
|
|||
|
||||
// Print a message indicating that Vault is not available anymore
|
||||
if f.lastState == vaultAvailable {
|
||||
f.logger.Printf("[INFO] fingerprint.consul: Vault is unavailable")
|
||||
f.logger.Printf("[INFO] fingerprint.vault: Vault is unavailable")
|
||||
}
|
||||
f.lastState = vaultUnavailable
|
||||
return false, nil
|
||||
|
|
Loading…
Reference in New Issue