This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git

commit f1c6c6fa0ced9c78aff85ec7f556117d18cfc38e
Author: Andrea Cosentino <[email protected]>
AuthorDate: Fri Jun 18 16:54:27 2021 +0200

    Upgrade Pulsar to version 2.8.0
---
 .../org/apache/camel/component/pulsar/utils/AutoConfiguration.java     | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git 
a/components/camel-pulsar/src/main/java/org/apache/camel/component/pulsar/utils/AutoConfiguration.java
 
b/components/camel-pulsar/src/main/java/org/apache/camel/component/pulsar/utils/AutoConfiguration.java
index ab13d8f..1667e48 100644
--- 
a/components/camel-pulsar/src/main/java/org/apache/camel/component/pulsar/utils/AutoConfiguration.java
+++ 
b/components/camel-pulsar/src/main/java/org/apache/camel/component/pulsar/utils/AutoConfiguration.java
@@ -68,8 +68,7 @@ public class AutoConfiguration {
         Tenants tenants = pulsarAdmin.tenants();
         List<String> tenantNames = tenants.getTenants();
         if (!tenantNames.contains(tenant)) {
-            TenantInfo tenantInfo = new TenantInfo();
-            tenantInfo.setAllowedClusters(clusters);
+            TenantInfo tenantInfo = 
TenantInfo.builder().allowedClusters(clusters).build();
             pulsarAdmin.tenants().createTenant(tenant, tenantInfo);
         }
     }

Reply via email to