You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dlab.apache.org by om...@apache.org on 2019/02/14 12:47:38 UTC

[incubator-dlab] branch EPMCDLAB-1186 updated: fixed issue with connection to S3

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

omartushevskyi pushed a commit to branch EPMCDLAB-1186
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git


The following commit(s) were added to refs/heads/EPMCDLAB-1186 by this push:
     new 27bdc53  fixed issue with connection to S3
27bdc53 is described below

commit 27bdc53e17a4053da046d246c0c383155a090ba7
Author: Oleh Martushevskyi <Ol...@epam.com>
AuthorDate: Thu Feb 14 14:47:30 2019 +0200

    fixed issue with connection to S3
---
 .../src/main/java/com/epam/dlab/module/aws/AdapterS3File.java           | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/services/billing-aws/src/main/java/com/epam/dlab/module/aws/AdapterS3File.java b/services/billing-aws/src/main/java/com/epam/dlab/module/aws/AdapterS3File.java
index 54d7ff4..319cfc6 100644
--- a/services/billing-aws/src/main/java/com/epam/dlab/module/aws/AdapterS3File.java
+++ b/services/billing-aws/src/main/java/com/epam/dlab/module/aws/AdapterS3File.java
@@ -356,7 +356,7 @@ public class AdapterS3File extends AdapterBase {
 
 		Optional.ofNullable(region)
 				.filter(StringUtils::isNoneBlank)
-				.ifPresent(r -> s3.setRegion(Region.valueOf(r).toAWSRegion()));
+				.ifPresent(r -> s3.setRegion(Region.fromValue(r).toAWSRegion()));
 		if (!s3.doesBucketExist(bucket)) {
 			throw new AdapterException("Bucket \"" + bucket + "\" does not exist.");
 		}


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@dlab.apache.org
For additional commands, e-mail: commits-help@dlab.apache.org