small fixes

This commit is contained in:
Alex Dadgar 2016-09-01 13:38:31 -07:00
parent a889e0a750
commit 4a8fba5cf7
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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