From 130f2a35884d9e561149d872605ffa15a640a051 Mon Sep 17 00:00:00 2001 From: HiangRio Date: Sun, 3 Nov 2019 15:19:53 +0800 Subject: [PATCH] Update base.py --- consul/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/consul/base.py b/consul/base.py index 09203b6d..fa4ef1f3 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.post( CB.bool(), '/v1/agent/service/deregister/%s' % service_id) def maintenance(self, service_id, enable, reason=None):