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 e1157ca87424002f89281239ca3fc3b3ac91006b Author: Andrea Cosentino <[email protected]> AuthorDate: Fri Apr 30 15:34:29 2021 +0200 CAMEL-16465 - Camel-AWS: Add useDefaultCredentialProvider option to all the components - ECS Component --- .../main/java/org/apache/camel/component/aws2/ecs/ECS2Endpoint.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/camel-aws/camel-aws2-ecs/src/main/java/org/apache/camel/component/aws2/ecs/ECS2Endpoint.java b/components/camel-aws/camel-aws2-ecs/src/main/java/org/apache/camel/component/aws2/ecs/ECS2Endpoint.java index bc5d705..91e7d0b 100644 --- a/components/camel-aws/camel-aws2-ecs/src/main/java/org/apache/camel/component/aws2/ecs/ECS2Endpoint.java +++ b/components/camel-aws/camel-aws2-ecs/src/main/java/org/apache/camel/component/aws2/ecs/ECS2Endpoint.java @@ -23,6 +23,7 @@ import org.apache.camel.Component; import org.apache.camel.Consumer; import org.apache.camel.Processor; import org.apache.camel.Producer; +import org.apache.camel.component.aws2.ecs.client.ECS2ClientFactory; import org.apache.camel.spi.UriEndpoint; import org.apache.camel.spi.UriParam; import org.apache.camel.support.ScheduledPollEndpoint; @@ -69,7 +70,8 @@ public class ECS2Endpoint extends ScheduledPollEndpoint { public void doStart() throws Exception { super.doStart(); - ecsClient = configuration.getEcsClient() != null ? configuration.getEcsClient() : createECSClient(); + ecsClient = configuration.getEcsClient() != null + ? configuration.getEcsClient() : ECS2ClientFactory.getEcsClient(configuration).getEcsClient(); } @Override
