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

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


The following commit(s) were added to refs/heads/main by this push:
     new 7a6116d130f CAMEL-18501 - Camel-Google-Secret-Manager: Create a task 
looking for secrets update in PubSub
7a6116d130f is described below

commit 7a6116d130f69b2b296bb298469f13c37402384a
Author: Claus Ibsen <[email protected]>
AuthorDate: Tue Sep 13 16:32:46 2022 +0200

    CAMEL-18501 - Camel-Google-Secret-Manager: Create a task looking for 
secrets update in PubSub
---
 .../camel-main/src/main/java/org/apache/camel/main/BaseMainSupport.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/core/camel-main/src/main/java/org/apache/camel/main/BaseMainSupport.java 
b/core/camel-main/src/main/java/org/apache/camel/main/BaseMainSupport.java
index d7ab13d1f7c..7a6fc43a4f6 100644
--- a/core/camel-main/src/main/java/org/apache/camel/main/BaseMainSupport.java
+++ b/core/camel-main/src/main/java/org/apache/camel/main/BaseMainSupport.java
@@ -419,7 +419,7 @@ public abstract class BaseMainSupport extends BaseService {
             Optional<Runnable> task = 
camelContext.adapt(ExtendedCamelContext.class)
                     .getPeriodTaskResolver().newInstance("gcp-secret-refresh", 
Runnable.class);
             if (task.isPresent()) {
-                long period = vc.aws().getRefreshPeriod();
+                long period = vc.gcp().getRefreshPeriod();
                 Runnable r = task.get();
                 if (LOG.isDebugEnabled()) {
                     LOG.debug("Scheduling: {} (period: {})", r, 
TimeUtils.printDuration(period, false));

Reply via email to