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

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


The following commit(s) were added to refs/heads/camel-3.20.x by this push:
     new e9a7a1c46b4 CAMEL-17652 - camel-minio - Auto create bucket should not 
be done in endpoint
e9a7a1c46b4 is described below

commit e9a7a1c46b43a101a8faccda787aa7fcf75f6235
Author: Andrea Cosentino <anco...@gmail.com>
AuthorDate: Wed May 10 18:14:16 2023 +0200

    CAMEL-17652 - camel-minio - Auto create bucket should not be done in 
endpoint
    
    Signed-off-by: Andrea Cosentino <anco...@gmail.com>
---
 .../main/java/org/apache/camel/component/minio/MinioEndpoint.java   | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git 
a/components/camel-minio/src/main/java/org/apache/camel/component/minio/MinioEndpoint.java
 
b/components/camel-minio/src/main/java/org/apache/camel/component/minio/MinioEndpoint.java
index ed9417b9d54..a4d47f4bc2c 100644
--- 
a/components/camel-minio/src/main/java/org/apache/camel/component/minio/MinioEndpoint.java
+++ 
b/components/camel-minio/src/main/java/org/apache/camel/component/minio/MinioEndpoint.java
@@ -92,11 +92,7 @@ public class MinioEndpoint extends ScheduledPollEndpoint {
                 LOG.trace("AutoCreateBucket set to true, Creating bucket 
{}...", bucketName);
                 makeBucket(bucketName);
                 LOG.trace("Bucket created");
-            } else {
-                throw new IllegalArgumentException(
-                        "Bucket does not exists, set autoCreateBucket option 
for bucket auto creation");
-
-            }
+            } 
         }
 
         if (isNotEmpty(getConfiguration().getPolicy())) {

Reply via email to