mirror of
https://github.com/hashicorp/vault.git
synced 2026-05-28 04:10:44 -04:00
Change to the pre-0.6.4 Consul Check API
Consul is never going to pass in more than 1K of output. This mitigates the pre-0.6.4 concern.
This commit is contained in:
parent
9647f2e067
commit
341abcae3a
1 changed files with 2 additions and 2 deletions
|
|
@ -351,9 +351,9 @@ func (c *ConsulBackend) runCheck() {
|
|||
// Run a TTL check
|
||||
agent := c.client.Agent()
|
||||
if c.unsealed {
|
||||
agent.UpdateTTL(c.checkID(), "Vault Unsealed", api.HealthPassing)
|
||||
agent.PassTTL(c.checkID(), "Vault Unsealed")
|
||||
} else {
|
||||
agent.UpdateTTL(c.checkID(), "Vault Sealed", api.HealthCritical)
|
||||
agent.FailTTL(c.checkID(), "Vault Sealed")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue