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 <[email protected]>
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: [email protected]
For additional commands, e-mail: [email protected]