Add acl token to getCatalogServices call. Fixes gh-440 (#445)

This commit is contained in:
Spojowa
2018-12-13 17:45:57 +01:00
committed by Spencer Gibb
parent 5e3babbb2c
commit 3ab7de8acd

View File

@@ -118,7 +118,7 @@ public class ConsulCatalogWatch implements ApplicationEventPublisherAware, Smart
Response<Map<String, List<String>>> response = consul
.getCatalogServices(new QueryParams(properties
.getCatalogServicesWatchTimeout(), index));
.getCatalogServicesWatchTimeout(), index), properties.getAclToken());
Long consulIndex = response.getConsulIndex();
if (consulIndex != null) {
catalogServicesIndex.set(BigInteger.valueOf(consulIndex));