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:
Sean Chittenden 2016-04-25 14:33:24 -07:00
parent 9647f2e067
commit 341abcae3a

View file

@ -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")
}
}