You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2022/03/04 07:48:48 UTC

[camel] 03/06: CAMEL-17739 - Camel Google Secret Manager Properties Source: Support the usage of client default instance

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 e3c84228e30b2ea340e8a7dce5eccf8426eada6f
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Mar 4 06:49:22 2022 +0100

    CAMEL-17739 - Camel Google Secret Manager Properties Source: Support the usage of client default instance
---
 .../google/secret/manager/GoogleSecretManagerPropertiesFunction.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/components/camel-google/camel-google-secret-manager/src/main/java/org/apache/camel/component/google/secret/manager/GoogleSecretManagerPropertiesFunction.java b/components/camel-google/camel-google-secret-manager/src/main/java/org/apache/camel/component/google/secret/manager/GoogleSecretManagerPropertiesFunction.java
index 9059a16..59b0ec8 100644
--- a/components/camel-google/camel-google-secret-manager/src/main/java/org/apache/camel/component/google/secret/manager/GoogleSecretManagerPropertiesFunction.java
+++ b/components/camel-google/camel-google-secret-manager/src/main/java/org/apache/camel/component/google/secret/manager/GoogleSecretManagerPropertiesFunction.java
@@ -102,7 +102,7 @@ public class GoogleSecretManagerPropertiesFunction extends ServiceSupport implem
             SecretManagerServiceSettings settings = SecretManagerServiceSettings.newBuilder()
                     .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)).build();
             client = SecretManagerServiceClient.create(settings);
-        } else if ( useDefaultInstance && ObjectHelper.isNotEmpty(projectId)) {
+        } else if (useDefaultInstance && ObjectHelper.isNotEmpty(projectId)) {
             SecretManagerServiceSettings settings = SecretManagerServiceSettings.newBuilder().build();
             client = SecretManagerServiceClient.create(settings);
         } else {