From 1830a607090d31f59249a1ea3c4006d561c9d9e8 Mon Sep 17 00:00:00 2001 From: Danny Webb Date: Tue, 20 Mar 2018 19:58:09 +0000 Subject: [PATCH] As per the API spec all of the agent ttl check actions are put, see https://www.consul.io/api/agent/check.html#ttl-check-pass. --- consul/base.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)