From 341abcae3ac21d8ce3e2ce6741e64494e93ef055 Mon Sep 17 00:00:00 2001 From: Sean Chittenden Date: Mon, 25 Apr 2016 14:33:24 -0700 Subject: [PATCH] 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. --- physical/consul.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/physical/consul.go b/physical/consul.go index aa67e6e248..6835b500fd 100644 --- a/physical/consul.go +++ b/physical/consul.go @@ -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") } }