This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push:
new 1c75752 CAMEL-14850 - Camel-AWS2-*: Improve the verifiers to check if
a particular service works on a specified region, use Region.of
1c75752 is described below
commit 1c757520a54b478cbb31975c899dc06f89564afc
Author: Andrea Cosentino <[email protected]>
AuthorDate: Mon Apr 6 15:33:36 2020 +0200
CAMEL-14850 - Camel-AWS2-*: Improve the verifiers to check if a particular
service works on a specified region, use Region.of
---
.../apache/camel/component/aws2/cw/Cw2ComponentVerifierExtension.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/components/camel-aws2-cw/src/main/java/org/apache/camel/component/aws2/cw/Cw2ComponentVerifierExtension.java
b/components/camel-aws2-cw/src/main/java/org/apache/camel/component/aws2/cw/Cw2ComponentVerifierExtension.java
index add9a99..a9ca8c2 100644
---
a/components/camel-aws2-cw/src/main/java/org/apache/camel/component/aws2/cw/Cw2ComponentVerifierExtension.java
+++
b/components/camel-aws2-cw/src/main/java/org/apache/camel/component/aws2/cw/Cw2ComponentVerifierExtension.java
@@ -65,7 +65,7 @@ public class Cw2ComponentVerifierExtension extends
DefaultComponentVerifierExten
ResultBuilder builder =
ResultBuilder.withStatusAndScope(Result.Status.OK, Scope.CONNECTIVITY);
try {
Cw2Configuration configuration = setProperties(new
Cw2Configuration(), parameters);
- if
(!CloudWatchClient.serviceMetadata().regions().contains(configuration.getRegion()))
{
+ if
(!CloudWatchClient.serviceMetadata().regions().contains(Region.of(configuration.getRegion())))
{
ResultErrorBuilder errorBuilder =
ResultErrorBuilder.withCodeAndDescription(VerificationError.StandardCode.ILLEGAL_PARAMETER,
"The service is not supported in this region");
return builder.error(errorBuilder.build()).build();
}