Skip to content

Commit

Permalink
Merge pull request #9 from double16/endpoint-not-required
Browse files Browse the repository at this point in the history
Only describe endpoint if specified in the configuration.
  • Loading branch information
myniva authored Mar 28, 2018
2 parents 966becc + 885c548 commit 12eb308
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,11 @@ public BuildCacheService createBuildCacheService(AwsS3BuildCache config, Describ
.type("AWS S3")
.config("Region", config.getRegion())
.config("Bucket", config.getBucket())
.config("Reduced Redundancy", String.valueOf(config.isReducedRedundancy()))
.config("Endpoint", config.getEndpoint());
.config("Reduced Redundancy", String.valueOf(config.isReducedRedundancy()));

if (config.getEndpoint() != null) {
describer.config("Endpoint", config.getEndpoint());
}

verifyConfig(config);
AmazonS3 s3 = createS3Client(config);
Expand Down

0 comments on commit 12eb308

Please sign in to comment.