diff --git a/consul/base.py b/consul/base.py index 09203b6d..929fad2c 100755 --- a/consul/base.py +++ b/consul/base.py @@ -1012,7 +1012,7 @@ def ttl_pass(self, check_id, notes=None): if notes: params['note'] = notes - return self.agent.http.get( + return self.agent.http.put( CB.bool(), '/v1/agent/check/pass/%s' % check_id, params=params) @@ -1027,7 +1027,7 @@ def ttl_fail(self, check_id, notes=None): if notes: params['note'] = notes - return self.agent.http.get( + return self.agent.http.put( CB.bool(), '/v1/agent/check/fail/%s' % check_id, params=params) @@ -1042,7 +1042,7 @@ def ttl_warn(self, check_id, notes=None): if notes: params['note'] = notes - return self.agent.http.get( + return self.agent.http.put( CB.bool(), '/v1/agent/check/warn/%s' % check_id, params=params)