Skip to content

Commit

Permalink
use v1 admin api for anti-affinity cluster endpoint (apache#1473)
Browse files Browse the repository at this point in the history
  • Loading branch information
rdhabalia authored and merlimat committed Mar 30, 2018
1 parent 3cc89d2 commit ce61498
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ public String getNamespaceAntiAffinityGroup(String namespace) throws PulsarAdmin
public List<String> getAntiAffinityNamespaces(String property, String cluster, String namespaceAntiAffinityGroup)
throws PulsarAdminException {
try {
WebTarget path = adminV2Namespaces.path(cluster).path("antiAffinity").path(namespaceAntiAffinityGroup);
WebTarget path = adminNamespaces.path(cluster).path("antiAffinity").path(namespaceAntiAffinityGroup);
return request(path.queryParam("property", property)).get(new GenericType<List<String>>() {});
} catch (Exception e) {
throw getApiException(e);
Expand Down

0 comments on commit ce61498

Please sign in to comment.