From d71672c96b6883e5a43bb378a0bf5386cb9c8ab6 Mon Sep 17 00:00:00 2001 From: "vignesh.senapathy" Date: Fri, 13 Apr 2018 14:46:48 -0400 Subject: [PATCH] after consul 1.0 the deregister of service is a put and not a get --- consul/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/consul/base.py b/consul/base.py index 09203b6d..143a4953 100755 --- a/consul/base.py +++ b/consul/base.py @@ -886,7 +886,7 @@ def deregister(self, service_id): take care of deregistering the service with the Catalog. If there is an associated check, that is also deregistered. """ - return self.agent.http.get( + return self.agent.http.put( CB.bool(), '/v1/agent/service/deregister/%s' % service_id) def maintenance(self, service_id, enable, reason=None):