Skip to content

Commit

Permalink
Service deregister timeout must be in Go time format (#893)
Browse files Browse the repository at this point in the history
  • Loading branch information
Isonami authored and CyberDem0n committed Dec 21, 2018
1 parent 7bc8d0a commit 929ff08
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion patroni/dcs/consul.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,8 @@ def _update_service(self, data):
api_parts = urlparse(data['api_url'])
api_parts = api_parts._replace(path='/{0}'.format(role))
conn_parts = urlparse(data['conn_url'])
check = base.Check.http(api_parts.geturl(), self._service_check_interval, deregister=self._client.http.ttl * 10)
check = base.Check.http(api_parts.geturl(), self._service_check_interval,
deregister='{0}s'.format(self._client.http.ttl * 10))
params = {
'service_id': '{0}/{1}'.format(self._scope, self._name),
'address': conn_parts.hostname,
Expand Down

0 comments on commit 929ff08

Please sign in to comment.