When deregistering from Consul use the aclToken. (#401)

Fixes #326
This commit is contained in:
a3aanwisse
2018-02-28 22:15:55 +01:00
committed by Spencer Gibb
parent eb250ddff9
commit 2d784ef775

View File

@@ -83,7 +83,7 @@ public class ConsulServiceRegistry implements ServiceRegistry<ConsulRegistration
if (log.isInfoEnabled()) {
log.info("Deregistering service with consul: " + reg.getInstanceId());
}
client.agentServiceDeregister(reg.getInstanceId());
client.agentServiceDeregister(reg.getInstanceId(), properties.getAclToken());
}
@Override